【发布时间】:2019-04-19 15:50:29
【问题描述】:
我对 Hibernate Validator 或更准确地说是 BindingResult 和方法 .hasError() 有问题。即使使用空对象,它也始终返回 true。在这里查看我的代码:https://github.com/jeddyn/spring-mvc-demo
Customer: null customer first name: null
bindingresult: org.springframework.validation.BeanPropertyBindingResult: 0 errors
Customer: null customer first name: null
bindingresult: org.springframework.validation.BeanPropertyBindingResult: 0 errors
【问题讨论】:
标签: java spring hibernate validation model-view-controller