因此,在@Axtavt的大力帮助下,我得出了结论,即可以在postHandle方法中从ModelAndView绑定Bind reuslt:
void postHandle(HttpServletRequest request, HttpServletResponse response, Object handler, ModelAndView modelAndView) { String key = BindingResult.MODEL_KEY_PREFIX + "commandName"; BindingResult br = (BindingResult) modelAndView.getModel().get(key);}
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)