9、grails console打印sql语句配置

development {
        dataSource {
            dbCreate = "update" // one of 'create', 'create-drop', 'update', 'validate', ''
            url = "jdbc:mysql://115.28.151.196:3306/mixboss?useUnicode=true&characterEncoding=utf-8"
            //url = "jdbc:mysql://192.168.115.118:3306/mixboss_wqh2?useUnicode=true&characterEncoding=utf-8"
           logSql = true
        }
    }

猜你喜欢

转载自583497282.iteye.com/blog/2245613