paulschwarz/spring-dotenv

env not loading at runtime after building .jar file

ashwin31 opened this issue · 1 comments

It is working perfectly in development.

  1. with maven, I am building my spring boot application without .env file.
  2. I have loaded all env variables into env and verfied with echo command. they are there
  3. but the java -jar project.jar is throwing error because it's not loading loading variables from env

I can't keep .evn at build time because my application should run in different environtments after build.

please advice

@paulschwarz can you help here?