Spring app doesn't read environmental variables from .env
I have .env file in my project root folder along with pom.xml. Contents:
and in application properties I use these values:
I even added Dotenv Dependency:
and configured it:
This class should set the system properties using the values from the
But actually it doesn't work and I get an exception when I launch my application.
I'm on Windows 10.
and in application properties I use these values:
I even added Dotenv Dependency:
and configured it:
This class should set the system properties using the values from the
Dotenv bean:But actually it doesn't work and I get an exception when I launch my application.
I'm on Windows 10.