解决Spring Boot Configuration Annotation Processor not configured

编程知识 更新时间:2023-04-05 04:24:44

当代码出现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

本文发布于:2023-04-05 04:24:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/f81273f62b6824bf4ea89c7489e47e9d.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:Configuration   Boot   Spring   configured   Processor

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!

  • 44758文章数
  • 14阅读数
  • 0评论数