intellij IDEA is not able to read the newly added properties from the application.yml file in spring boot application
Answered
I have a Spring Boot application that has an application.yml file with some existing properties. I imported the project into IntelliJ IDEA and added new properties to the application.yml file, but IntelliJ is not recognizing these new properties in the code. I've tried invalidating the cache and restarting the IDE, as well as building the application multiple times, but to no avail. This is causing me to waste a lot of time. I would greatly appreciate your help with this issue. Thank you in advance.
Please sign in to leave a comment.
Hello,
Is it possible to provide any sample project example for investigation?
Thanks for the reply Yaroslav.
It is a simple spring boot application with application.yml. I cloned the project and imported it. Trying to modify the application.yml and the java code. But the new properties are not being picked up. The file is a valid yml file with correct syntax only.
Could you please clarify what do you mean by "new properties are not being picked up"? Do you mean that running application uses old properties?
Yes and the problem is not resolved YET after almost one year!
Fares Gargouri Please file a bug at https://youtrack.jetbrains.com/newIssue?project=IDEA with a sample project and the exact steps to reproduce the issue so that we can investigate and fix it.