初次使用Grails时,使用其内置数据库,一直不会出错,但迁移到外部数据库时会出错Could not determine Hibernate dialect for database name [Oracle]!
注意在conf文件下的dataSource添加上dialect 如下(使用Oracle数据库)
dataSource {
pooled = true
driverClassName = "oracle.jdbc.driver.OracleDriver"
username = "xiaoyang"
password = "xiaoyang"
dialect = org.hibernate.dialect.OracleDialect;
}