Is there any good way to use .env file in bootrun?
Answered
Hello, I have a question about .env file and spring project.
We can run the spring boot project from the buttons at top-right corner.
Is there any good way to use ".env" file in the project?
We can configure environmental variables one-by-one in the Run/Debug configuration dialog, but it would be better if I could use ".env" file.
Please sign in to leave a comment.
Here is a related feature request on YouTrack:
https://youtrack.jetbrains.com/issue/IDEA-137820/Run-Debug-Configuration-to-allow-Environment-Variables-to-be-specified-via-a-properties-file-which-can-then-be-generatedshared
Feel free to watch it in order to be notified once it has updates. See this article if you are not familiar with YouTrack.
Konstantin Annikov
Thank you, I got it.