Advertisement
Guest User

Application yaml

a guest
Apr 26th, 2017
100
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 1.58 KB | None | 0 0
  1. dataSources:
  2.     dataSource:
  3.         dialect: org.hibernate.dialect.MySQLInnoDBDialect
  4.         driverClassName: com.mysql.jdbc.Driver
  5.         username: root
  6.         password: root
  7.         url: jdbc:mysql://localhost/grails_dev
  8.     inMemoryDb:
  9.           jmxExport: true
  10.           pooled: true
  11.           driverClassName: org.h2.Driver
  12.           username: sa
  13.           password:
  14. environments:
  15.     development:
  16.         dataSource:
  17.             dbCreate: create-drop
  18.         inMemoryDb:
  19.             dbCreate: create-drop
  20.             url: jdbc:h2:mem:devDb;MVCC=TRUE;LOCK_TIMEOUT=10000;DB_CLOSE_ON_EXIT=FALSE
  21.     test:
  22.         dataSource:
  23.             dbCreate: create-drop
  24.             url: jdbc:mysql://localhost/grails_dev2
  25.     production:
  26.         inMemoryDb:
  27.             dbCreate: create-drop
  28.             url: jdbc:h2:./prodDb;MVCC=TRUE;LOCK_TIMEOUT=10000;DB_CLOSE_ON_EXIT=FALSE
  29.             properties:
  30.                 jmxEnabled: true
  31.                 initialSize: 5
  32.                 maxActive: 50
  33.                 minIdle: 5
  34.                 maxIdle: 25
  35.                 maxWait: 10000
  36.                 maxAge: 600000
  37.                 timeBetweenEvictionRunsMillis: 5000
  38.                 minEvictableIdleTimeMillis: 60000
  39.                 validationQuery: SELECT 1
  40.                 validationQueryTimeout: 3
  41.                 validationInterval: 15000
  42.                 testOnBorrow: true
  43.                 testWhileIdle: true
  44.                 testOnReturn: false
  45.                 jdbcInterceptors: ConnectionState
  46.                 defaultTransactionIsolation: 2 # TRANSACTION_READ_COMMITTED
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement