SpringMVC: InitBinder的用法
1 数据校验@InitBinderpublic void initBinder(DataBinder binder) {// 设置验证的类为UserValidatorbinder.setValidator(new UserValidator()); } public class UserValidator implements Validator{@Overridepublic ...