我怎么能在 Grails 2.0.4 中做这样的事情?
dataSource {
dbCreate = "create-drop"
String host = request.getServerName()
switch( host ) {
case "company1.com": url = "jdbc:mysql://localhost/db1"
case "company2.com": url = "jdbc:mysql://localhost/db2"
default: null
}
}
我不想使用多租户核心插件