我有表域类和有typeOfTransaction财产。该属性是必需的(空白:false)。我想为此属性编写自定义错误消息,如果用户未设置该值,则必须显示该消息。自定义错误消息
com.example.domain.form.typeOfTransaction.blank = Type of transaction required
以上是消息,但是当我试图保存表单空typeOfTransaction场我不明白这一点。代替此消息,我收到默认消息
"Please select an item in the list."
p.s.我不知道这个默认消息是在哪里定义的。
HTML5有