playframework - Where to put application.conf in Play for Scala standalone? -


i using slick in play scala standalone (i.e. not web application). put application.conf file slick takes database configuration?

i tried in main/resources/application.conf doesn't work. directories structure:

enter image description here

and error i'm getting:

exception in thread "main" com.typesafe.config.configexception$missing: no configuration setting found key 'dbcontrol'

and appplication.conf:

dbcontrol = {   url = "jdbc:mysql://localhost:3306/control0001"   driver = com.mysql.jdbc.driver   connectionpool = disabled   keepaliveconnection = true   user=root   password=xxxx } 

this worked me, putting application.conf in src/main/scala folder directly.


Comments

Popular posts from this blog

php - Permission denied. Laravel linux server -

google bigquery - Delta between query execution time and Java query call to finish -

python - Pandas two dataframes multiplication? -