IDEA Spring Boot Configuration Annotation Processor not configured解决方法

239 阅读1分钟

直接上解决办法

遇到的问题:Spring Boot Configuration Annotation Processor not configured

image.png

解决方法:其实这并不影响代码的编译,但是看着难受,可以在pom.xml中加入spring-boot-configuration-processor解决

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