Grails Problem with custom error messages

后端 未结 5 826
庸人自扰
庸人自扰 2021-02-05 16:30

I am currently trying to specify custom error messages in grails for the default constraints but so far all I get back is the default error message.

I know that I have t

5条回答
  •  孤独总比滥情好
    2021-02-05 17:24

    It might be that your constraints aren't static - it should be specified as "static constraints = { ..."

    Also note that nullable defaults to false so you don't need to specify that.

提交回复
热议问题