Skip to content

Commit 0a01b8c

Browse files
author
Igor Polevoy
committed
added import line
1 parent 1f4b34d commit 0a01b8c

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

app-config/README.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,15 @@ Small application configuration library to provide different properties for appl
55

66
## Usage
77

8+
First, do a static import `AppConfig.p(...)` method:
9+
10+
11+
```java
12+
import static org.javalite.app_configAppConfig.p;
13+
```
14+
15+
then, simply call a `p(..)` metod in places where you need to inject a property:
16+
817
```java
918
String name = p("name");
1019
```

0 commit comments

Comments
 (0)