Skip to content

Instantly share code, notes, and snippets.

@dusanstanojeviccs
Created November 5, 2017 21:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dusanstanojeviccs/dbea08d722004bc8aad17bc48f927bbe to your computer and use it in GitHub Desktop.
Save dusanstanojeviccs/dbea08d722004bc8aad17bc48f927bbe to your computer and use it in GitHub Desktop.
......
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