Closed CodingAleCR closed 5 months ago
happens also to me , intellij 2021.3
@nevotz in my case it was solved by upgrading Gradle on my project.
I understand this is not the best solution or something that everyone can do on their projects but I hope it helps. 🙏🏼
I have a Spring Boot application running with configurations set in
application.properties
pointing to env vars in a.env
file. However, when running the project, it does not recognize the environment variables. This used to work a while back (a couple of years ago) but now it does not.Here's an example of how it's setup:
.env
application.properties
If I substitute all values in the
application.properties
for the ones in.env
then the project runs just fine.IDE: IntelliJ CE Configuration Type: Gradle task or Application EnvFile settings: