Spring Boot之 Configuration Annotation Proessor not found in classpath解决方法
2018-04-01 17:24
579 查看
出现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>
根据提示的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
- spring boot Configuration Annotation Proessor not found in classpath
- spring boot Configuration Annotation Proessor not found in classpath
- 【SpringBoot】Spring Boot Configuration Annotation Processor not found in classpath
- Spring Boot Configuration Annotion Processor not found in classpath
- Spring Boot 踩坑之路之 Configuration Annotation Proessor not found in classpath
- 关于SpringBoot :java.lang.ClassNotFoundException: org.dom4j.io.STAXEventReader错误解决方法
- 【Bug解决】Spring配置错误:java.io.FileNotFoundException: class path resource [cxd/entity/User.hbm.xml] canno
- php使用ZipArchive提示Fatal error: Class ZipArchive not found in的解决方法
- java.io.FileNotFoundException: class path resource [beans.xml] cannot be opened because it does not exist 解决方法
- java.lang.Exception: libsvm classes not in CLASSPATH!问题解决方法
- 解决Error:java: System Java Compiler was not found in classpath
- 异常解决 java.io.FileNotFoundException: class path resource [spring/applicationContext_*.xml]
- 异常解决 java.io.FileNotFoundException: class path resource [spring/applicationContext_*.xml]
- 安装Android studio出现'tools.jar' seems to be not in Android Studio classpath......的解决方法
- servlet解析不出来解决方法(is not a known servlet. Servlets belong in the classpath, often in WEB-INF/classes)
- iOS 中支付宝 ’openssl/asn1.h' file not found问题 和 objc-class-ref in AlipaySDK问题解决方法
- Windows平台的 PHP 报错 Fatal error: Class COM not found in 的解决方法
- ‘tools.jar’ seems to be not in Android Studio classpath解决方法
- maven项目启动报:java.lang.ClassNotFoundException: org.springframework.web.context.ContextLoaderListener 错误解决方法-杜恩德