问题描述
写了一个配置类,加了注解@ConfigurationProperties(prefix = “xxx”)
 后一直报警告:Spring Boot Configuration Annotation Processor not configured
 意思是 Spring boot 未配置注解处理器
 
 
解决过程
出现这个问题后,百度查了解决方式
1.maven项目
maven项目是添加一个依赖:
<dependency>
    <groupId>org.springframework.boot</groupId>
    <artifactId>spring-boot-configuration-processor</artifactId>
    <optional>true</optional>
</dependency>在maven-compiler-plugin内的annotationProcessorPaths中添加相应path
<pluginManagement><plugins><plugin><groupId>org.apache.maven.plugins</groupId><artifactId>maven-compiler-plugin</artifactId>