hanker

Intellij - Spring Boot Configuration Annotation Processor not configured Error 본문

SPRING/SPRING-ERROR

Intellij - Spring Boot Configuration Annotation Processor not configured Error

hanker 2021. 4. 18. 22:21

@ConfigurationProperties 어노테이션 사용중 갑작스러운 빨간알림이 생겼다.

 

우측에 보면 Open Documentation이라고 보이는데 클릭하면 docs.spring.io 사이트로 이동된다.

 

 

어떻게 처리할지 친절하게 알려준다.

 

pom.xml

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

 

gradle.build

dependencies {
    annotationProcessor "org.springframework.boot:spring-boot-configuration-processor"
}

 

적용하고 오류가 안사라지길래 File - Invalidate Caches 클릭해서 재실행 했더니 깔끔하게 사라졌다.