spring boot Configuration Annotation Proessor not found in classpath
2017-08-09 16:21
621 查看
如下问题,见图片:
解决方案:
查看ConfigurationProperties的用法,或者ConfigurationProperties的location的用法。然后用这种方法思路解决问题时,发现网上有location过期的情况。
具体解决方案:
使用@PropertySource来指定自定义的资源目录代替使用@ConfigurationProperties中的locations
参考: http://www.jianshu.com/p/b71845c142d0
参考:百度搜索:@configurationproperties locations过期
@ConfigurationProperties(prefix = "book",locations = "classpath:book.properties") locations是红色字体,就是说ConfigurationProperties没有这个locations属性。
解决方案:
查看ConfigurationProperties的用法,或者ConfigurationProperties的location的用法。然后用这种方法思路解决问题时,发现网上有location过期的情况。
具体解决方案:
使用@PropertySource来指定自定义的资源目录代替使用@ConfigurationProperties中的locations
参考: http://www.jianshu.com/p/b71845c142d0
参考:百度搜索:@configurationproperties locations过期
相关文章推荐
- 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 Annotation Proessor not found in classpath
- Spring Boot Configuration Annotion Processor not found in classpath
- VS Code打开使用IDEA搭建的Spring Boot项目运行提示"snakeyaml was not found on the classpath"错误
- Android中java.lang.ClassNotFoundException: ***.**** in loader dalvik.system.PathClassLoader[/data/app
- springboot 启动错误 出现Caused by: java.lang.ClassNotFoundException: ch.qos.logback.classic.Level
- Caused by: java.lang.ClassNotFoundException: android.view.fragment in loader dalvik.system.PathClass
- Spring Boot:The Bean Validation API is on the classpath but no implementation could be found
- SpringBoot整合web时报错Caused by: java.lang.ClassNotFoundException: javax.servlet.Filter
- spring boot 集成spring data jpa 时报错java.lang.ClassNotFoundException: org.hibernate.OptimisticLockExcep
- 异常解决 java.io.FileNotFoundException: class path resource [spring/springmvc.xml]
- No configuration found. Configuring ehcache from ehcache-failsafe.xml found in the classpath
- 关于java.lang.ClassNotFoundException: org.springframework.boot.SpringApplication的解决
- java.io.FileNotFoundException: class path resource [spring.xml] cannot be opened because it does not
- 解决Error:java: System Java Compiler was not found in classpath
- [org.mybatis.spring.mapper.ClassPathMapperScanner]-No MyBatis mapper was found in '[com.xxx.xxx.dao]
- 异常解决 java.io.FileNotFoundException: class path resource [spring/applicationContext_*.xml]