RequestMappingHandlerAdapter properly invokes handler method in synchronizeOnSession mode again
Issue: SPR-13999
This commit is contained in:
@@ -117,8 +117,8 @@ import org.springframework.web.util.WebUtils;
|
|||||||
public class RequestMappingHandlerAdapter extends AbstractHandlerMethodAdapter
|
public class RequestMappingHandlerAdapter extends AbstractHandlerMethodAdapter
|
||||||
implements BeanFactoryAware, InitializingBean {
|
implements BeanFactoryAware, InitializingBean {
|
||||||
|
|
||||||
private static final boolean completionStagePresent = ClassUtils.isPresent("java.util.concurrent.CompletionStage",
|
private static final boolean completionStagePresent = ClassUtils.isPresent(
|
||||||
RequestMappingHandlerAdapter.class.getClassLoader());
|
"java.util.concurrent.CompletionStage", RequestMappingHandlerAdapter.class.getClassLoader());
|
||||||
|
|
||||||
|
|
||||||
private List<HandlerMethodArgumentResolver> customArgumentResolvers;
|
private List<HandlerMethodArgumentResolver> customArgumentResolvers;
|
||||||
@@ -739,8 +739,9 @@ public class RequestMappingHandlerAdapter extends AbstractHandlerMethodAdapter
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
else {
|
||||||
mav = invokeHandlerMethod(request, response, handlerMethod);
|
mav = invokeHandlerMethod(request, response, handlerMethod);
|
||||||
|
}
|
||||||
|
|
||||||
if (getSessionAttributesHandler(handlerMethod).hasSessionAttributes()) {
|
if (getSessionAttributesHandler(handlerMethod).hasSessionAttributes()) {
|
||||||
applyCacheSeconds(response, this.cacheSecondsForSessionAttributeHandlers);
|
applyCacheSeconds(response, this.cacheSecondsForSessionAttributeHandlers);
|
||||||
|
|||||||
Reference in New Issue
Block a user