Spring Boot Configuration Annotation Processor not configured(最简单的解决办法)

发布时间 2023-04-15 18:14:10作者: 打篮球的Curry

在使用@ConfigurationProperties是报红:Spring Boot Configuration Annotation Processor not configured,如下图所示:

其实这个不影响程序运行,但作为程序员就是看着不舒服,网上也有解决办法,其中最多的就是说在pom.xml中加入以下依赖:

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

但是这个方法对我来说并不适用(可能是IEDEA版本的问题),于是我就点开设置按钮,然后将Show notification panel(显示通知面板)关闭即可解决问题