我有这样的课
class Account{
AccType type ;
static constraints ={
type(nullable:false);
}
}
Run Code Online (Sandbox Code Playgroud)
在grails/i18n/message.properties我写道:
account.type.null =请填写帐户类型
但似乎错误仍然是:类[类帐户]的属性[类型]不能为空
如何使用我自己的消息更改错误消息.
| 归档时间: |
|
| 查看次数: |
1566 次 |
| 最近记录: |