A port of the Ruby dotenv project for Java and Kotlin. Load environment variables from a .env file. (same feature as docker works)
https://github.com/cdimascio/java-dotenv
-
Run mvn clean install command needed to be able to create jar
-
Move to your target directory and copy you .dev file
-
Run your server using java -jar spring-web-kotlin-0.0.1-SNAPSHOT.jar
-
Go to your browser and create a get request to http://localhost:8080/hello
-
Enjoy with this simple solution using .dev file like a docker container :)