spring boot Configuration Annotation Proessor not found in classpath
程序员文章站
2024-03-14 21:51:53
...
如下问题,见图片:
@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过期
推荐阅读
-
【SpringBoot】Spring Boot Configuration Annotation Processor not found in classpath
-
spring boot Configuration Annotation Proessor not found in classpath
-
springboot configuration annotation processor not found in classpath问题
-
解决spring boot1.5以上版本@ConfigurationProperties提示“Spring Boot Configuration Annotation Processor not.."
-
Spring Boot configuration annotation processor not found in classpath
-
Spring Boot配置 : YAML (简介+语法+配置文件值注入)+报错提示Spring Boot Configuration Annotation Processor not
-
【Exception】spring boot Configuration Annotation Proessor not found in classpath
-
Spring Boot configuration annotation processor not found in classpath
-
Spring Boot配置 : YAML (简介+语法+配置文件值注入)+报错提示Spring Boot Configuration Annotation Processor not
-
【SpringBoot】报错:spring boot configuration annotation processor not configured