DataSource.groovy
上传用户:steveyhw
上传日期:2019-05-13
资源大小:307k
文件大小:1k
- dataSource {
- pooled = true
- // dbCreate = "update"
- // driverClassName = "com.mysql.jdbc.Driver"
- // url = "jdbc:mysql://192.168.0.16:3306/CI?useUnicode=true&characterEncoding=UTF-8"
- // username = "root"
- // password = "000"
- }
- hibernate {
- cache.use_second_level_cache = true
- cache.use_query_cache = true
- cache.provider_class = 'org.hibernate.cache.EhCacheProvider'
- }
- // environment specific settings
- environments {
- development {
- // dataSource {
- // dbCreate = "update" // one of 'create', 'create-drop','update'
- // pooled = false
- // driverClassName = "org.hsqldb.jdbcDriver"
- // username = "sa"
- // password = ""
- // url = "jdbc:hsqldb:mem:devDB"
- // }
- dataSource {
- dbCreate = "update"
- driverClassName = "com.mysql.jdbc.Driver"
- url = "jdbc:mysql://localhost:3306/CI?useUnicode=true&characterEncoding=UTF-8"
- username = "root"
- password = "000"
- }
- }
- // test {
- // dataSource {
- // dbCreate = "update"
- // url = "jdbc:hsqldb:mem:testDb"
- // }
- // }
- // production {
- // dataSource {
- // dbCreate = "update"
- // url = "jdbc:hsqldb:file:prodDb;shutdown=true"
- // }
- // }
- }