Grails Problem with custom error messages

后端 未结 5 829
庸人自扰
庸人自扰 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:21

    This worked for me

    com.model.Customer.name.nullable.error = Custom message
    

    instead of

    com.model.Customer.name.blank = Custom message
    

提交回复
热议问题