首页 > 编程语言 > 详细

Spring Boot 踩坑之路之 Configuration Annotation Proessor not found in classpath

时间:2019-01-15 12:44:51      阅读:121      评论:0      收藏:0      [点我收藏+]

1. 出现spring boot Configuration Annotation Proessor not found in classpath的提示是在用了@ConfigurationProperties这个注解时,所以问题出现在ConfigurationProperties注解。
2. 根据提示的not found in classpath,查询此注解的使用关于怎么指定classpath,进而查询location,spring boot1.5以上版本@ConfigurationProperties取消location注解.

官方解决方案,Maven引入依赖

 

<dependency>
   <groupId> org.springframework.boot </groupId>
   <artifactId> spring-boot-configuration-processor </artifactId>
   <optional> true </optional>
</dependency>

 

Spring Boot 踩坑之路之 Configuration Annotation Proessor not found in classpath

原文:https://www.cnblogs.com/xinruyi/p/10271035.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!