Skip to content

Instantly share code, notes, and snippets.

@ainoya
Created May 29, 2015 02:06
Show Gist options
  • Save ainoya/a78b8f41f0ec3efeb768 to your computer and use it in GitHub Desktop.
Save ainoya/a78b8f41f0ec3efeb768 to your computer and use it in GitHub Desktop.
play2.4/slick3/mysql database configuration
slick {
default="infra.dao.*"
dbs {
default {
driver="slick.driver.MySQLDriver$"
db {
driver=com.mysql.jdbc.Driver
url="jdbc:mysql://127.0.0.1:3306/dev?useUnicode=true&characterEncoding=UTF-8"
user=root
password="admin"
connectionTimeout = 15 second
connectionTestQuery = "SELECT 1"
}
}
}
}
Loger.root=DEBUG
# Logger used by the framework:
logger.play=DEBUG
# Logger provided to your application:
logger.application=DEBUG
//application.router=admin.Routes
play {
db {
default {
hikaricp {
connectionTestQuery = "SELECT 1"
}
}
}
evolutions {
db {
default {
autoApply=true
autoApplyDowns=true
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment