Advertisement
Guest User

Untitled

a guest
May 9th, 2017
131
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.71 KB | None | 0 0
  1. ---
  2. grails:
  3. profile: rest-api
  4. codegen:
  5. defaultPackage: com.myapp
  6. spring:
  7. transactionManagement:
  8. proxies: false
  9. gorm:
  10. # Whether to autowire entities.
  11. # Disabled by default for performance reasons.
  12. autowire: false
  13. reactor:
  14. # Whether to translate GORM events into Reactor events
  15. # Disabled by default for performance reasons
  16. events: false
  17. info:
  18. app:
  19. name: '@info.app.name@'
  20. version: '@info.app.version@'
  21. grailsVersion: '@info.app.grailsVersion@'
  22. spring:
  23. main:
  24. banner-mode: 'off'
  25. groovy:
  26. template:
  27. check-template-location: false
  28.  
  29. # Spring Actuator Endpoints are Disabled by Default
  30. endpoints:
  31. enabled: false
  32. jmx:
  33. enabled: true
  34.  
  35. ---
  36. grails:
  37. mime:
  38. disable:
  39. accept:
  40. header:
  41. userAgents:
  42. - Gecko
  43. - WebKit
  44. - Presto
  45. - Trident
  46. types:
  47. json:
  48. - application/json
  49. - text/json
  50. hal:
  51. - application/hal+json
  52. - application/hal+xml
  53. xml:
  54. - text/xml
  55. - application/xml
  56. atom: application/atom+xml
  57. css: text/css
  58. csv: text/csv
  59. js: text/javascript
  60. rss: application/rss+xml
  61. text: text/plain
  62. all: '*/*'
  63. urlmapping:
  64. cache:
  65. maxsize: 1000
  66. controllers:
  67. defaultScope: singleton
  68. converters:
  69. encoding: UTF-8
  70.  
  71. ---
  72. hibernate:
  73. singleSession: true
  74. flush:
  75. mode: manual
  76. connection:
  77. useUnicode: true
  78. charSet: utf8
  79. characterEncoding: utf8
  80. provider_class: org.hibernate.hikaricp.internal.HikariCPConnectionProvider
  81. hikari:
  82. minimumIdle: '5'
  83. maximumPoolSize: '20'
  84. idleTimeout: '30000'
  85. dataSourceClassName: org.mariadb.jdbc.MySQLDataSource
  86. cache:
  87. queries: false
  88. use_query_cache: false
  89. use_second_level_cache: true
  90. provider_class: net.sf.ehcache.hibernate.EhCacheProvider
  91. region.factory_class: org.hibernate.cache.ehcache.SingletonEhCacheRegionFactory
  92.  
  93. dataSource:
  94. pooled: false
  95. jmxExport: true
  96. jmxEnabled: true
  97. dialect: org.hibernate.dialect.MySQL5InnoDBDialect
  98. driverClassName: org.mariadb.jdbc.Driver
  99.  
  100. environments:
  101. development:
  102. dataSource.dbCreate: update
  103. hibernate.hikari:
  104. dataSource:
  105. url: jdbc:mysql://localhost:3306/my_app_db
  106. user: my_db_username
  107. password: my_db_password
  108. test:
  109. dataSource.dbCreate: update
  110. hibernate.hikari:
  111. dataSource:
  112. url: jdbc:mysql://localhost:3306/my_app_db
  113. user: my_db_username
  114. password: my_db_password
  115. production:
  116. dataSource.dbCreate: update
  117. hibernate.hikari:
  118. dataSource:
  119. url: jdbc:mysql://localhost:3306/my_app_db
  120. user: my_db_username
  121. password: my_db_password
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement