2
我想在單個環境中使用兩個數據源。如何在Grails 1.3.3中使用多個數據源
dataSource {
dbCreate = "update" // one of 'create', 'create-drop','update'
pooled = true
driverClassName = "com.mysql.jdbc.Driver"
username = "root"
password = ""
url = ""
dialect = "org.hibernate.dialect.MySQL5InnoDBDialect"
properties {
maxActive = 75
maxIdle = 10
minIdle = 2
initialSize = 2
maxWait = 30000
validationQuery="select 1"
testOnBorrow=true
testWhileIdle=true
timeBetweenEvictionRunsMillis=60000
}
}
但我使用grails 1.3.3是任何可能的解決方案\ – Naresh
是的,如果您使用該插件,則可以使用多個數據源。它適用於Grails 1.3.x版。 –