Created
November 5, 2017 21:53
-
-
Save dusanstanojeviccs/dbea08d722004bc8aad17bc48f927bbe to your computer and use it in GitHub Desktop.
This file contains 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
...... | |
play.modules { | |
# By default, Play will load any class called Module that is defined | |
# in the root package (the "app" directory), or you can define them | |
# explicitly below. | |
# If there are any built-in modules that you want to disable, you can list them here. | |
#enabled += my.application.Module | |
# If there are any built-in modules that you want to disable, you can list them here. | |
#disabled += "" | |
enabled += "play.api.db.DBModule" | |
} | |
...... | |
play.db { | |
# The combination of these two settings results in "db.default" as the | |
# default JDBC pool: | |
config = "db" | |
default = "default" | |
# Play uses HikariCP as the default connection pool. You can override | |
# settings by changing the prototype: | |
prototype { | |
# Sets a fixed JDBC connection pool size of 50 | |
hikaricp.minimumIdle = 50 | |
hikaricp.maximumPoolSize = 50 | |
} | |
} | |
...... | |
db { | |
default.driver = com.mysql.jdbc.Driver | |
default.url = "jdbc:mysql://localhost/bookstore" | |
default.username = root | |
default.password = "root" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment