Advertisement
Guest User

Untitled

a guest
Aug 29th, 2018
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Groovy 1.31 KB | None | 0 0
  1. environments {
  2.     development {
  3.         dataSource {
  4.             dbCreate = "update" // one of 'create', 'create-drop', 'update', 'validate', ''
  5.             //url = "jdbc:h2:mem:devDb;MVCC=TRUE;LOCK_TIMEOUT=10000;DB_CLOSE_ON_EXIT=FALSE"
  6.             url = "jdbc:mysql://localhost/frontdesk2db?useUnicode=yes&characterEncoding=UTF-8"
  7.             username = "root"
  8.             password = "admin"
  9.  
  10.             pooled = true
  11.             properties {
  12.                 jmxEnabled = true
  13.                 initialSize = 5
  14.                 maxActive = 200
  15.                 minIdle = 20
  16.                 maxIdle = 100
  17.                 maxWait = 10000
  18.                 maxAge = 10 * 60 * 1000
  19.                 timeBetweenEvictionRunsMillis = 15000
  20.                 minEvictableIdleTimeMillis = 60000
  21.                 validationQuery = "SELECT 1"
  22.                 validationQueryTimeout = 3
  23.                 validationInterval = 30000
  24.                 testOnBorrow = true
  25.                 testWhileIdle = true
  26.                 testOnReturn = false
  27.  
  28.                 removeAbandoned = true
  29.                 removeAbandonedTimeout = 600
  30.  
  31.                 jdbcInterceptors = "ConnectionState;StatementCache(max=200)"
  32.                 defaultTransactionIsolation = java.sql.Connection.TRANSACTION_READ_COMMITTED
  33.             }
  34.         }
  35.     }
  36. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement