idea报错如下:

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

SpringBoot @ConfigurationProperties报错

 

解决方法:加上@Component注解

SpringBoot @ConfigurationProperties报错

 

相关文章: