@InitBinder protected void initBinder(HttpServletRequest request, ServletRequestDataBinder binder) throws Exception { binder.registerCustomEditor(Date.class, new DatePropertyEditor(yourDateformat)); }
@InitBinder protected void initBinder(HttpServletRequest request, ServletRequestDataBinder binder) throws Exception { binder.registerCustomEditor(Date.class, new DatePropertyEditor(yourDateformat)); }
转载于:https://www.cnblogs.com/SHMILYHP/p/5127470.html