Spring Boot Configuration Annotation Processor not configured 问题解决
程序员文章站
2022-03-24 12:36:54
...
Spring Boot Configuration Annotation Processor not configured 问题解决
问题原因:
进行Spring Boot配置文件部署时,发出警告Spring Boot Configuration Annotation Processor not configured,但是不影响运行。
解决方案:
在pom.xml文件中引入依赖
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-configuration-processor</artifactId>
<optional>true</optional>
</dependency>
问题分析
它的意思是“Spring Boot配置注解执行器没有配置”,配置注解执行器的好处是什么。
配置注解执行器配置完成后,当执行类中已经定义了对象和该对象的字段后,在配置文件中对该类赋值时,便会非常方便的弹出提示信息。
然后发现下面的情况:
引入spring-boot-configuration-processor依赖后添加@ConfigurationProperties注解后报 Re-run Spring Boot Configuration Annotation Processor to update
问题分析
引入依赖以后爆红不出现了,但是出现了Re-run Spring Boot Configuration Annotation Processor to update
意思是:重新运行Spring引导配置注释处理器以更新
重新build一下项目就OK了
上一篇: Spring Boot configuration Annotation Processor not configured
下一篇: Spring Boot Configuration Annotation Processor not configured解决方法
推荐阅读
-
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
-
解决IDEA中spring boot Configuration Annotation Processor not configured报红
-
使用@ConfigurationProperties注解,Spring Boot Configuration Annotation Processor not configured爆红
-
spring boot configuration annotation processor not found in classpath
-
Spring Boot Configuration Annotation Processor not found in classpath