https://github.com/cdimascio/java-dotenv-example
https://github.com/cdimascio/java-dotenv-example
Last synced: about 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/cdimascio/java-dotenv-example
- Owner: cdimascio
- Created: 2018-04-24T18:32:05.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2019-03-02T03:46:26.000Z (over 7 years ago)
- Last Synced: 2025-02-04T12:48:08.659Z (over 1 year ago)
- Language: Java
- Size: 9.77 KB
- Stars: 1
- Watchers: 3
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# java-dotenv-example
Simple `dotenv-java` example using maven.
## Clone
```shell
git clone
```
## Compile
```shell
mvn compile
```
## Run
```shell
mvn exec:java -Dexec.mainClass="io.github.cdimascio.examples.dotenv.Main"
```
The program outputs the value of the env var `MY_ENV`. In this case, `MY_VALUE`
## License
MIT