spring boot configuration annotation processor notconfigured解决方法

spring boot configuration annotation processor notconfigured解决方法

一、问题描述

我在使用ConfigurationProperties注解的时候idea出现提示信息spring boot configuration annotation processor notconfigured,但是却不影响程序的运行,如下图所示:

二、解决方法

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

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

yaml 复制代码
<dependency>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-configuration-processor</artifactId>
            <optional>true</optional>
</dependency>
相关推荐
從南走到北3 分钟前
JAVA国际版二手车交易二手车市场系统源码支持Android+IOS+H5+APP
android·java·ios
Kuo-Teng11 分钟前
LeetCode 19: Remove Nth Node From End of List
java·数据结构·算法·leetcode·链表·职场和发展·list
北i14 分钟前
TiDB 关联子查询去关联优化实战案例与原理深度解析
java·数据库·sql·tidb
Kuo-Teng15 分钟前
LeetCode 21: Merge Two Sorted Lists
java·算法·leetcode·链表·职场和发展
我命由我1234520 分钟前
Java 开发 - 粘包处理器 - 基于消息头 + 消息体(魔数验证、长度验证)
java·网络·后端·网络协议·java-ee·intellij-idea·intellij idea
2301_8003997226 分钟前
stm32 printf重定向到USART
java·stm32·算法
csdn_wuwt30 分钟前
有C#可用的开源的地图吗?
后端·c#·gis·map·开发·设计·地图
bagadesu30 分钟前
15.<Spring Boot 日志>
java·后端
laplace012339 分钟前
Maven
java·maven
wdfk_prog41 分钟前
Xshell终端连接Ubuntu/Debian无颜色的解决方案
java·ubuntu·debian