提交 f9541d1e 编写于 作者: A Arjen Poutsma

DispatcherServlet.processHandlerException checks whether the ModelAndView is...

DispatcherServlet.processHandlerException checks whether the ModelAndView is empty before rendering it.
上级 2a35aee2
......@@ -1059,6 +1059,9 @@ public class DispatcherServlet extends FrameworkServlet {
exMv = it.next().resolveException(request, response, handler, ex);
}
if (exMv != null) {
if (exMv.isEmpty()) {
return null;
}
if (logger.isDebugEnabled()) {
logger.debug("Handler execution resulted in exception - forwarding to resolved error view: " + exMv, ex);
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册