Skip to content

Latest commit

 

History

History
30 lines (18 loc) · 432 Bytes

README.md

File metadata and controls

30 lines (18 loc) · 432 Bytes

dotenv-java-example

Simple dotenv-java example using maven.

Clone

git clone 

Compile

mvn compile

Run

mvn exec:java -Dexec.mainClass="io.github.cdimascio.examples.dotenv.Main"

The program outputs the value of the environment var MY_ENV. In this case it's, MY_VALUE

License

MIT

Note: This example is licensed under MIT. dotenv-java is licensed under Apache 2.0