当代码出现Spring Boot Configuration Annotation Processor not configured的时候
原因是:
1.出现spring boot Configuration Annotation Proessor not found in classpath的提示是在用了@ConfigurationProperties这个注解时,所以问题出现在ConfigurationProperties注解。
2.根据提示的not found in classpath,查询此注解的使用关于怎么指定classpath,进而查询location,spring boot1.5以上版本@ConfigurationProperties取消location注解
这个是看的大佬的(原文链接:https://blog.csdn/w05980598/article/details/79167826)
报错地点
这个图片是我改好了截的图,其实是没有第一个包的,改好了有的
解决方法
在.xml文件里面加上Maven引入依赖
<dependency>
<groupId> org.springframework.boot </groupId>
<artifactId> spring-boot-configuration-processor </artifactId>
<optional> true </optional>
</dependency>
然后
搞定收工
更多推荐
解决Spring Boot Configuration Annotation Processor not configured
发布评论