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

解决方法:加上@Component注解

本文介绍了在使用IDEA过程中遇到的一个关于@ConfigurationProperties的错误,并给出了通过添加@Component注解来解决该问题的方法。
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
1269

被折叠的 条评论
为什么被折叠?