build.gradle中buildscript下面的hibernate4更换为:
//classpath "org.grails.plugins:hibernate4:5.0.5"
classpath "org.grails.plugins:hibernate5:5.0.5"
依赖更换:
// compile "org.grails.plugins:hibernate4"
// compile "org.hibernate:hibernate-ehcache"
compile "org.grails.plugins:hibernate5"
compile "org.hibernate:hibernate-core:5.1.0.Final"
compile "org.hibernate:hibernate-ehcache:5.1.0.Final"
网友评论