개발(합니다)/시나브로(이슈)
[Spring] rerun spring boot configuration annotation processor to update grenerated metadata
otrodevym
2021. 4. 18. 00:00
반응형
상황
Properties정보를 읽어오기 위해 Intellij에서 spring boot @ConfigurationProperties(prefix = "app")를 추가하면서 오류가 발생했습니다.
문제 파악
Intellij 2017.02 버전과 gradle 4.1 버전이 업데이트 되면서 필수적으로 추가해야 하는 라이브러리가 생겼다고 합니다.
해결 방법
maven
dependencies { annotationProcessor group: 'org.springframework.boot', name: 'spring-boot-configuration-processor'}
gradle
annotationProcessor 'org.springframework.boot:spring-boot-configuration-processor'
추가 후 에러는 없어졌으나 위처럼 "rerun spring boot configuration annotation processor to update grenerated metadata" 에러가 난다면 Intellij의 캐시를 다 지우고 재시작하면 됩니다.
반응형