Advertisement
Guest User

Untitled

a guest
Dec 10th, 2016
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.19 KB | None | 0 0
  1. name := """zooengineer"""
  2.  
  3. version := "1.0-SNAPSHOT"
  4.  
  5. lazy val root = (project in file(".")).enablePlugins(PlayJava)
  6.  
  7. scalaVersion := "2.11.7"
  8.  
  9. libraryDependencies ++= Seq(
  10. javaJdbc,
  11. cache,
  12. javaWs
  13. )
  14.  
  15. ## Database Connection Pool
  16. # https://www.playframework.com/documentation/latest/SettingsJDBC
  17. # ~~~~~
  18. # Play doesn't require a JDBC database to run, but you can easily enable one.
  19. #
  20. # libraryDependencies += jdbc
  21. #
  22. play.db {
  23. # The combination of these two settings results in "db.default" as the
  24. # default JDBC pool:
  25. config = "db"
  26. default = "default"
  27.  
  28. # Play uses HikariCP as the default connection pool. You can override
  29. # settings by changing the prototype:
  30. prototype {
  31. # Sets a fixed JDBC connection pool size of 50
  32. #hikaricp.minimumIdle = 50
  33. #hikaricp.maximumPoolSize = 50
  34. }
  35. }
  36.  
  37. ## JDBC Datasource
  38. # https://www.playframework.com/documentation/latest/JavaDatabase
  39. # https://www.playframework.com/documentation/latest/ScalaDatabase
  40. # ~~~~~
  41. # Once JDBC datasource is set up, you can work with several different
  42. # database options:
  43. #
  44. # Slick (Scala preferred option): https://www.playframework.com/documentation/latest/PlaySlick
  45. # JPA (Java preferred option): https://playframework.com/documentation/latest/JavaJPA
  46. # EBean: https://playframework.com/documentation/latest/JavaEbean
  47. # Anorm: https://www.playframework.com/documentation/latest/ScalaAnorm
  48. #
  49. db {
  50. # Default database configuration using MySQL database engine
  51. # Connect to playdb as playdbuser
  52.  
  53. # You can declare as many datasources as you want.
  54. # By convention, the default datasource is named `default`
  55.  
  56. # Default database configuration using MySQL database engine
  57. # Connect to playdb as playdbuser
  58. db.default.driver=com.mysql.jdbc.Driver
  59. db.default.url="jdbc:mysql://localhost/zooengineer"
  60. db.default.username=root
  61. db.default.password="root123"
  62.  
  63. # https://www.playframework.com/documentation/latest/Developing-with-the-H2-Database
  64. #default.driver = org.h2.Driver
  65. #default.url = "jdbc:h2:mem:play"
  66. #default.username = sa
  67. #default.password = ""
  68.  
  69. # You can turn on SQL logging for any datasource
  70. # https://www.playframework.com/documentation/latest/Highlights25#Logging-SQL-statements
  71. #default.logSql=true
  72. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement