Advertisement
Guest User

Untitled

a guest
Jul 24th, 2019
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.31 KB | None | 0 0
  1. import com.typesafe.config.{Config, ConfigFactory}
  2.  
  3. val config: Config = ConfigFactory.load("application.conf")
  4. val env = config.getString("key.key1")
  5.  
  6. key {
  7.  
  8. key1 = "value1"
  9.  
  10. }
  11.  
  12. com.typesafe.config.ConfigException$Missing: system properties: No configuration setting found for key 'key'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement