I\'ve added:
org.springframework.boot
spring-boot-configuration-processor
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.