@InitBinder("employeeForm")
public void initBinder(WebDataBinder binder){
binder.setValidator(employeeValidator);
binder.registerCustomEditor(Date.class, new DateEditor());
binder.registerCustomEditor(Integer.class, "age", new AgeEditor());
}
FormController.java 文件源码
java
阅读 42
收藏 0
点赞 0
评论 0
项目:Spring-5.0-Cookbook
作者:
评论列表
文章目录