application.conf 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123
  1. # This is the main configuration file for the application.
  2. # ~~~~~
  3. # Secret key
  4. # ~~~~~
  5. # The secret key is used to secure cryptographics functions.
  6. #
  7. # This must be changed for production, but we recommend not changing it in this file.
  8. #
  9. # See http://www.playframework.com/documentation/latest/ApplicationSecret for more details.
  10. application.secret="`o0VB@vXStsF:ffwM5ZZ_r:GYkm96QM[nRUJLpEbI8hwLUdV;N<:UyUWI;lf/XP`"
  11. # The application languages
  12. # ~~~~~
  13. application.langs="en"
  14. # Global object class
  15. # ~~~~~
  16. # Define the Global object class for this application.
  17. # Default to Global in the root package.
  18. # application.global=Global
  19. # Router
  20. # ~~~~~
  21. # Define the Router object to use for this application.
  22. # This router will be looked up first when the application is starting up,
  23. # so make sure this is the entry point.
  24. # Furthermore, it's assumed your route file is named properly.
  25. # So for an application router like `conf/my.application.Router`,
  26. # you may need to define a router file `my.application.routes`.
  27. # Default to Routes in the root package (and `conf/routes`)
  28. # application.router=my.application.Routes
  29. # Database configuration
  30. # ~~~~~
  31. # You can declare as many datasources as you want.
  32. # By convention, the default datasource is named `default`
  33. #
  34. # db.default.driver=org.h2.Driver
  35. # db.default.url="jdbc:h2:mem:play"
  36. # db.default.user=sa
  37. # db.default.password=""
  38. #
  39. # You can expose this datasource via JNDI if needed (Useful for JPA)
  40. # db.default.jndiName=DefaultDS
  41. db {
  42. default {
  43. jndiName="DefaultDS"
  44. dataSourceClassName=com.mysql.jdbc.jdbc2.optional.MysqlDataSource
  45. dataSource {
  46. user=benchmarkdbuser
  47. password=benchmarkdbpass
  48. databaseName=hello_world
  49. serverName=127.0.0.1
  50. port=3306
  51. jdbcCompliantTruncation=false
  52. elideSetAutoCommits=true
  53. useLocalSessionState=true
  54. cachePrepStmts=true
  55. cacheCallableStmts=true
  56. cacheServerConfiguration=true
  57. cacheResultSetMetadata=true
  58. alwaysSendSetIsolation=false
  59. prepStmtCacheSize=4096
  60. prepStmtCacheSqlLimit=2048
  61. zeroDateTimeBehavior=convertToNull
  62. traceProtocol=false
  63. useUnbufferedInput=false
  64. useReadAheadInput=false
  65. maintainTimeStats=false
  66. useServerPrepStmts=true
  67. }
  68. partitionCount=4
  69. # The number of connections to create per partition. Setting this to
  70. # 5 with 3 partitions means you will have 15 unique connections to the
  71. # database.
  72. # This value maps to the maximumPoolSize for HickariCP (db.default.partitionCount * db.default.maxConnectionsPerPartition)
  73. maxConnectionsPerPartition=64
  74. # The number of initial connections, per partition.
  75. #
  76. # This maps to the minimumIdle connections for HikariCP (db.default.partitionCount * db.default.minConnectionsPerPartition)
  77. minConnectionsPerPartition=64
  78. }
  79. }
  80. jpa.default=defaultPersistenceUnit
  81. dbplugin=disabled
  82. # Evolutions
  83. # ~~~~~
  84. # You can disable evolutions if needed
  85. evolutionplugin=disabled
  86. # Ebean configuration
  87. # ~~~~~
  88. # You can declare as many Ebean servers as you want.
  89. # By convention, the default server is named `default`
  90. #
  91. # ebean.default="models.*"
  92. # Logger
  93. # ~~~~~
  94. # You can also configure logback (http://logback.qos.ch/),
  95. # by providing an application-logger.xml file in the conf directory.
  96. # Root logger:
  97. logger.root=INFO
  98. # Logger used by the framework:
  99. logger.play=ERROR
  100. # Logger provided to your application:
  101. logger.application=ERROR