在idea中springboot项目使用注解@ConfigurationProperties提示 Spring Boot Configuration Annotation Processor not found in classpath ,如下图
点击右上角 Open Documentation,可以看到官方解释 说maven项目需要添加依赖spring-boot-configuration-processor
maven 依赖
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-configuration-processor</artifactId>
<optional>true</optional>
</dependency>
解决
pom.xml 添加上面依赖重新导入后,注解ConfigurationProperties报错提示没了