SpringBoot配置问题解决
报错:
spring boot Configuration Annotation Proessor not found in classpath
在idea的代码最上方显示绿条,大概就是说找不到配置文件(yml)的路径,属于下面这个注解的报错
@ConfigurationProperties(prefix = "xxx")
解决:
配置pom.xml文件,添加以下内容
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-configuration-processor</artifactId>
<optional>true</optional>
</dependency>