文章为转载:
原文链接:Spring Boot Configuration Annotation Processor not configured 问题解决 | 航行学园
问题:
在Springboot 配置文件时,使用了注解@ConfigurationProperties 提示了 springboot configuration annotation processor not configured,但是不影响项目的运行
解决:在pom文件中引入依赖(注解处理器)
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-configuration-processor</artifactId>
<optional>true</optional>
</dependency>
如果依赖报红,可刷新一下,重新下载依赖
分析:该依赖主要作用在配置文件中,可以方便做出有效提示(结合第一张图参考)