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注解

原文地址:https://www.cnblogs.com/SiriYang/p/10645755.html