Spring Boot Configuration Annotation Processor not configured

phenomenon

Some files in the idea prompt "spring boot Configuration Annotation Processor not configured".

the reason

The prompt indicates that springboot's automatic configuration annotation processor and spring-boot-configuration-processor are not configured.

It cannot be recognized when the ConfigurationProperties annotation is used.

solution

Option One

The spring-boot-configuration-processor component is added to the pom, and the status becomes normal.

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

 

Option II

When the processor component is not used, you can remove the prompt bar without adding it.

  • Click "Hide notification" in the first picture
  • Without importing components, just remove the show notification panel option in the preference>spring boot of idea.

 

Guess you like

Origin blog.csdn.net/lizz861109/article/details/110877155