Spring Boot Metadata in YAML-files
Answered
I have a Spring Boot-project with properties configured with @ConfigurationProperties.
A file spring-configuration-metadata.json file is generated with the spring-boot-configuration-processor.
My problem is that the metadata are not shown in the application.yml. No tooltips and no autocompletion data are shown.
In the file application.properties all is fine,.There tooltips and autocompletion is working.
Why are there no metadata in application.yml? What can I do?
Please sign in to leave a comment.
Finally I found a way to solve the problem.
IntelliJ couldn't detect the YAML-Files as Spring Boot Configuration Files (for whatever reason).
So I marked the YAML-Files manually as Spring Boot Configuration Files:
File -> Project Structure -> Facets -> Spring -> Customize Spring Boot ... (Icon up right) -> Add custom configuration files.
This done the tooltips and autocompletion worked.