Guest User

Untitled

a guest
Nov 8th, 2017
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.99 KB | None | 0 0
  1. ......
  2.  
  3. play.modules {
  4. # By default, Play will load any class called Module that is defined
  5. # in the root package (the "app" directory), or you can define them
  6. # explicitly below.
  7. # If there are any built-in modules that you want to disable, you can list them here.
  8. #enabled += my.application.Module
  9.  
  10. # If there are any built-in modules that you want to disable, you can list them here.
  11. #disabled += ""
  12. enabled += "play.api.db.DBModule"
  13. }
  14.  
  15. ......
  16.  
  17. play.db {
  18. # The combination of these two settings results in "db.default" as the
  19. # default JDBC pool:
  20. config = "db"
  21. default = "default"
  22.  
  23. # Play uses HikariCP as the default connection pool. You can override
  24. # settings by changing the prototype:
  25. prototype {
  26. # Sets a fixed JDBC connection pool size of 50
  27. hikaricp.minimumIdle = 50
  28. hikaricp.maximumPoolSize = 50
  29. }
  30. }
  31. ......
  32.  
  33. db {
  34. default.driver = com.mysql.jdbc.Driver
  35. default.url = "jdbc:mysql://localhost/bookstore"
  36. default.username = root
  37. default.password = "root"
  38. }
Add Comment
Please, Sign In to add comment