问题描述:
- 出现spring boot Configuration Annotation Proessor not found in classpath的提示是在用了@ConfigurationProperties这个注解时,所以问题出现在ConfigurationProperties注解。
- 根据提示的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项目中出现springbootConfigurationAnnotationProcessor not found in classpath错误的方法。该问题通常发生在使用@ConfigurationProperties注解时。文章提供了具体的解决方案,包括如何正确配置Maven依赖来引入spring-boot-configuration-processor。
47

被折叠的 条评论
为什么被折叠?



