Created
May 29, 2015 02:06
-
-
Save ainoya/a78b8f41f0ec3efeb768 to your computer and use it in GitHub Desktop.
play2.4/slick3/mysql database configuration
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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