src/main/java/com/wlh/wpd/controller/MvcController.java
@InitBinder
    public void initBinder(ServletRequestDataBinder binder){
        binder.registerCustomEditor(Date.class, new CustomDateEditor(new SimpleDateFormat("yyyy-MM-dd"),
                true));
    }
//At the time of initialization,convert the type "String" to type "date"
At the time of initialization,convert the type "String" to type "date"
At the time of initialization convert the type " String " to type " date "
@InitBinder
    public void initBinder(ServletRequestDataBinder binder){
        binder.registerCustomEditor(Date.class, new CustomDateEditor(new SimpleDateFormat("yyyy-MM-dd"),
                true));
    }
@ InitBinder public void initBinder ( ServletRequestDataBinder binder ) { binder . registerCustomEditor ( Date . class , new CustomDateEditor ( new SimpleDateFormat ( "yyyy-MM-dd" ) , true ) ) ; }
At the time of initialization,convert the type "String" to type "date"
At the time of initialization convert the type " String " to type " date "