SpringBoot @ConfigurationProperties报错

idea报错如下:

Not registered via @EnableConfigurationProperties or marked as Spring component less... (Ctrl+F1)
Inspection info: Verifies @ConfigurationProperties setup. New in 2018.3

 

解决方法:加上@Component注解

 

posted @ 2019-04-02 22:04  SiriYang  阅读(3659)  评论(1编辑  收藏  举报