Advertisement
Guest User

Untitled

a guest
Jun 19th, 2019
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.34 KB | None | 0 0
  1. projectname{
  2. "application" {
  3. "host":127.0.0.1
  4. "port":8080
  5. }
  6. }
  7.  
  8. case class AppConfig (config: Config) {
  9. val host = config.getString("projectname.application.host")
  10. val port = config.getInt("projectname.application.port")
  11. }
  12.  
  13. val config = AppConfig(ConfigFactory.load("application.conf"))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement