grails默认全局gorm配置

清华大佬耗费三个月吐血整理的几百G的资源,免费分享!....>>>

//默认实体约束
grails.gorm.default.constraints = {
'*'(nullable:true, blank:true)
}
//默认映射
grails.gorm.default.mapping = {
   cache true
   sort 'id'
   order 'desc'
}