在Spring Boot程序中添加@Configuration和@ConfigurationProperties(value='...')注释时,编辑器提示
spring boot configuration annotation processor not configured
解决办法是在pom.xml文件中添加spring-boot-configuration-processor配置处理器依赖即可
<dependencies>
......
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-configuration-processor</artifactId>
<optional>true</optional>
</dependency>
</dependencies>
本文指导如何在SpringBoot项目中遇到'springboot-configuration-processor'未配置问题,通过在pom.xml中添加相关依赖来修复,并详述了操作步骤。
618





