Skip to content

Latest commit

 

History

History

maven-simple

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

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