IDEA提示:spring boot Configuration Annotation Proessor not found in classpath

使用IDEA,在实体类加上@ConfigurationProperties上面会提示spring boot Configuration Annotation Proessor not found in classpath,

其实不用管它也是可以正常运行的,因为在没有指定路径的情况下,默认在 resource 下的 applications.properties 文件中查找,如果找到则返回值,如果没有找到则返回默认值null/0/false…

如果觉得碍眼,也可以去掉。去除方法如下:点击(工具图标),把show notification panel改为不选中即可。

如果没有工具图标:点击:File》Setting》Spring》Spring Boot

猜你喜欢

转载自blog.csdn.net/qq_22165667/article/details/83825105