mirror of
https://github.com/lightbend/config.git
synced 2025-01-28 21:20:07 +08:00
commit
99afd721a5
@ -126,6 +126,7 @@ Scala dependency.
|
|||||||
## Using the Library
|
## Using the Library
|
||||||
|
|
||||||
### API Example
|
### API Example
|
||||||
|
import com.typesafe.config.ConfigFactory
|
||||||
|
|
||||||
Config conf = ConfigFactory.load();
|
Config conf = ConfigFactory.load();
|
||||||
int bar1 = conf.getInt("foo.bar");
|
int bar1 = conf.getInt("foo.bar");
|
||||||
@ -134,7 +135,7 @@ Scala dependency.
|
|||||||
|
|
||||||
### Longer Examples
|
### Longer Examples
|
||||||
|
|
||||||
See the examples in the `examples/` directory.
|
See the examples in the `examples/` [directory](https://github.com/typesafehub/config/tree/master/examples).
|
||||||
|
|
||||||
You can run these from the sbt console with the commands `project
|
You can run these from the sbt console with the commands `project
|
||||||
config-simple-app-java` and then `run`.
|
config-simple-app-java` and then `run`.
|
||||||
|
Loading…
Reference in New Issue
Block a user