Skip to content

Commit

Permalink
update README
Browse files Browse the repository at this point in the history
  • Loading branch information
Carmine DiMascio committed Apr 25, 2020
1 parent 11ae8b6 commit 67dadf3
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -241,6 +241,25 @@ for (e in dotenv.entries()) {
}
```

### *optional* `systemProperties`

* Load environment variables into System properties, thus making all environment variables accessible via `System.getProperty(...)`

**Java example**

```java
Dotenv
.configure()
.systemProperties()
.load()
```
**Kotlin Dsl example**

```kotlin
dotenv {
systemProperties = true
}
```

## Examples
- with [Maven (simple)](https://github.com/cdimascio/java-dotenv-example)
Expand Down

0 comments on commit 67dadf3

Please sign in to comment.