Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- dataSources:
- dataSource:
- dialect: org.hibernate.dialect.MySQLInnoDBDialect
- driverClassName: com.mysql.jdbc.Driver
- username: root
- password: root
- url: jdbc:mysql://localhost/grails_dev
- inMemoryDb:
- jmxExport: true
- pooled: true
- driverClassName: org.h2.Driver
- username: sa
- password:
- environments:
- development:
- dataSource:
- dbCreate: create-drop
- inMemoryDb:
- dbCreate: create-drop
- url: jdbc:h2:mem:devDb;MVCC=TRUE;LOCK_TIMEOUT=10000;DB_CLOSE_ON_EXIT=FALSE
- test:
- dataSource:
- dbCreate: create-drop
- url: jdbc:mysql://localhost/grails_dev2
- production:
- inMemoryDb:
- dbCreate: create-drop
- url: jdbc:h2:./prodDb;MVCC=TRUE;LOCK_TIMEOUT=10000;DB_CLOSE_ON_EXIT=FALSE
- properties:
- jmxEnabled: true
- initialSize: 5
- maxActive: 50
- minIdle: 5
- maxIdle: 25
- maxWait: 10000
- maxAge: 600000
- timeBetweenEvictionRunsMillis: 5000
- minEvictableIdleTimeMillis: 60000
- validationQuery: SELECT 1
- validationQueryTimeout: 3
- validationInterval: 15000
- testOnBorrow: true
- testWhileIdle: true
- testOnReturn: false
- jdbcInterceptors: ConnectionState
- defaultTransactionIsolation: 2 # TRANSACTION_READ_COMMITTED
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement