Spring Boot Configuration Annotation Proessor not found in classpath解决办法

From: https://www.cnblogs.com/whtgjy/p/9438317.html

  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依赖,在pom.xml文件中加入

<dependency>
   <groupId> org.springframework.boot </groupId>
   <artifactId> spring-boot-configuration-processor </artifactId>
   <optional> true </optional>
</dependency>
posted on 2019-05-21 14:44  清清飞扬  阅读(2008)  评论(0编辑  收藏  举报