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.

0
2 comments

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.

0

Please sign in to leave a comment.