반응형
강의를 보고 로보트처럼 받아쓰기를 하고 했는데, 내가 어딘가를 또 놓쳤나 빨간색 알림이 뜨기 시작했다.
해당 알림이 있다고, 동작하는데는 문제는 없었으나, "거슬린다"라는 이유로 해결해보자.
"Open Documentation"을 눌러보니, 해당 문제를 해결할 수 있는 스프링 문서가 나온다.
(항상 느끼지만 스프링부트는 생각보다 아니 엄청 친절하다..)
"@ConfigurationProperties"의 어노테이션을 사용함으로서, 나타나는 문제이기에, gradle에 해당 의존성을 추가해준다.
dependencies {
annotationProcessor "org.springframework.boot:spring-boot-configuration-processor"
}
이후, gradle을 다시 인식해주면 해결 할 수 있다.
혹시 몰라 Maven에서 작성하면 되는 xml도 작성해둔다. (사람일은 모르니깐..)
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-configuration-processor</artifactId>
<optional>true</optional>
</dependency>
728x90
반응형