I added the below lines before SpringApplication.run(CrackTheNumberApplication.class, args); for testing purpose
System.out.println("DB_URL = " + System.getenv("DB_URL"));
System.out.println("DB_USERNAME = " + System.getenv("DB_USERNAME"));
The output I got is:
DB_URL = null
DB_USERNAME = null
I guess its not loading from .env file
I added the below lines before SpringApplication.run(CrackTheNumberApplication.class, args); for testing purpose
System.out.println("DB_URL = " + System.getenv("DB_URL"));
System.out.println("DB_USERNAME = " + System.getenv("DB_USERNAME"));
The output I got is:
DB_URL = null
DB_USERNAME = null
I guess its not loading from .env file