提交 a02fd7c9 编写于 作者: J Juergen Hoeller

RequestMappingHandlerAdapter properly invokes handler method in case of no session as well

Issue: SPR-13999
上级 9c0f99c0
...@@ -725,7 +725,7 @@ public class RequestMappingHandlerAdapter extends AbstractHandlerMethodAdapter ...@@ -725,7 +725,7 @@ public class RequestMappingHandlerAdapter extends AbstractHandlerMethodAdapter
protected ModelAndView handleInternal(HttpServletRequest request, protected ModelAndView handleInternal(HttpServletRequest request,
HttpServletResponse response, HandlerMethod handlerMethod) throws Exception { HttpServletResponse response, HandlerMethod handlerMethod) throws Exception {
ModelAndView mav = null; ModelAndView mav;
checkRequest(request); checkRequest(request);
// Execute invokeHandlerMethod in synchronized block if required. // Execute invokeHandlerMethod in synchronized block if required.
...@@ -737,8 +737,13 @@ public class RequestMappingHandlerAdapter extends AbstractHandlerMethodAdapter ...@@ -737,8 +737,13 @@ public class RequestMappingHandlerAdapter extends AbstractHandlerMethodAdapter
mav = invokeHandlerMethod(request, response, handlerMethod); mav = invokeHandlerMethod(request, response, handlerMethod);
} }
} }
else {
// No HttpSession available -> no mutex necessary
mav = invokeHandlerMethod(request, response, handlerMethod);
}
} }
else { else {
// No synchronization on session demanded at all...
mav = invokeHandlerMethod(request, response, handlerMethod); mav = invokeHandlerMethod(request, response, handlerMethod);
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册