码迷,mamicode.com
首页 > 编程语言 > 详细

关于Spring Boot Configuration Annotation Proessor not found in classpath 的处理

时间:2019-10-17 15:57:03      阅读:77      评论:0      收藏:0      [点我收藏+]

标签:png   bsp   pid   版本   not found   conf   group   pre   RoCE   

技术图片

1.出现spring boot Configuration Annotation Proessor not found in classpath的提示是在用了@ConfigurationProperties这个注解时,所以问题出现在ConfigurationProperties注解。


2.根据提示的not found in classpath,查询此注解的使用关于怎么指定classpath,进而查询location,spring boot1.5以上版本@ConfigurationProperties取消location注解

 

官方解决方案在pom文件中引入以下依赖

    <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 的处理

标签:png   bsp   pid   版本   not found   conf   group   pre   RoCE   

原文地址:https://www.cnblogs.com/dmxk/p/11692117.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!