@Configuration을 사용하려고 했는데, 해당 알람이 발생했습니다.
내용은 Configuration Annotation Processor 설정이 안되어 있다는 말입니다.
Spring Boot Configuration Annotation Processor not configured
알람에 링크된 경로를 따라가면, Spring 공식 해결책을 볼 수 있습니다.
To use the processor, include a dependency on spring-boot-configuration-processor.
With Maven the dependency should be declared as optional, as shown in the following example:
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-configuration-processor</artifactId>
<optional>true</optional>
</dependency>
With Gradle, the dependency should be declared in the annotationProcessor configuration, as shown in the following example:
dependencies {
annotationProcessor "org.springframework.boot:spring-boot-configuration-processor"
}
참고로 Configuration Annotation Processor 사용하기 위해서는 두 개의 의존성을 추가해야 합니다.
dependencies {
kapt("org.springframework.boot:spring-boot-configuration-processor")
annotationProcessor("org.springframework.boot:spring-boot-configuration-processor")
}
만약 의존성 추가 후에도 알람이나 빌드 오류가 계속되면, Cache를 지우고 다시 빌드하면 됩니다.
IntelliJ - File - Invaildate Caches 메뉴에서 지울 수 있습니다.