Spring Boot configuration annotation processor not found in classpath
程序员文章站
2022-04-01 20:49:03
场景:在Spring Boot项目的resources文件夹下新建一个META-INF文件夹,然后在META-INF文件夹下新建一个spring-configuration-metadata.json文件,用来自定义一些配置项,然后打开spring-configuration-metadata.json文件就报了如下错误:解决方法:在pom.xml中引入如下依赖: org.springframe...
场景:在Spring Boot项目的resources文件夹下新建一个META-INF文件夹,然后在META-INF文件夹下新建一个spring-configuration-metadata.json文件,用来自定义一些配置项,然后打开spring-configuration-metadata.json文件就报了如下错误:
解决方法:
在pom.xml中引入如下依赖:
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-configuration-processor</artifactId>
<optional>true</optional>
</dependency>
该依赖的作用,简单来说就是为自定义的配置类生成元数据信息,然后报错问题解决,文件能够正常使用。
本文地址:https://blog.csdn.net/weixin_38106322/article/details/110476532
推荐阅读
-
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