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

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

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

 

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

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

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

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-07-24
  • 2022-12-23
  • 2021-09-24
  • 2020-03-10
  • 2021-11-10
猜你喜欢
  • 2021-06-03
  • 2021-07-30
  • 2021-06-27
  • 2021-10-10
相关资源
相似解决方案