Re-run Spring Boot Configuration Annotation Processor to update generated metadata

前端 未结 7 2298
傲寒
傲寒 2020-12-23 15:41

I\'ve added:


    org.springframework.boot
    spring-boot-configuration-processor         


        
7条回答
  •  慢半拍i
    慢半拍i (楼主)
    2020-12-23 16:19

    I had the same issue. The problem is that the Spring Boot annotation processor generates the spring-configuration-metadata.json file inside your /target/classes/META-INF folder.

    If you happen to have ignored this folder in IntelliJ like me (because what the heck, who cares about classes files?), the file won't be indexed by your IDE. Therefore, no completion, and the annoying message.

    Just remove target from the ignore files/folders list, located in Settings > Editor > File Types > Ignore files and folders.

提交回复
热议问题