IDEA 版本:2019.2
错误:
属性配置>>把配置写在一个类中
写类文件时,
@ConfigurationProperties()提示’spring boot configuration annotation processor not found in classpath’

解决:
在上一行加上 @Component 后,错误波浪号消失。

运行成功。
本文介绍在IntelliJ IDEA 2019.2版本中,使用@Component注解解决@ConfigurationProperties注解导致的'springbootconfigurationannotationprocessornotfoundinclasspath'错误。通过在类上添加@Component注解,可以消除IDE的警告波浪号,并使Spring Boot应用正常运行。
IDEA 版本:2019.2
错误:
属性配置>>把配置写在一个类中
写类文件时,
@ConfigurationProperties()提示’spring boot configuration annotation processor not found in classpath’

解决:
在上一行加上 @Component 后,错误波浪号消失。

运行成功。
636
3069
3842

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