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:
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
Post a Comment