牛叔叔 的笔记

好好学习

2023-12-13 16:28

spring boot configuration annotation processor notconfigured解决方法

牛叔叔

JavaEE

(137)

(0)

收藏


image.png


“spring boot configuration annotation processor not configured”这个问题通常是由于构建工具没有正确配置Annotation Processor引起的。在使用Spring Boot时,如果项目中使用@Configuration注解,而构建工具没有正确配置Annotation Processor,就可能会遇到这个问题。

在项目的pom文件中引入spring-boot-configuration-processor依赖即可


<dependency>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-configuration-processor</artifactId>
            <optional>true</optional>
</dependency>


0条评论

点击登录参与评论