Browse Source

RequestMappingHandlerAdapter properly invokes handler method in synchronizeOnSession mode again

Issue: SPR-13999
pull/982/head
Juergen Hoeller 9 years ago
parent
commit
1815a6a7eb
  1. 9
      spring-webmvc/src/main/java/org/springframework/web/servlet/mvc/method/annotation/RequestMappingHandlerAdapter.java

9
spring-webmvc/src/main/java/org/springframework/web/servlet/mvc/method/annotation/RequestMappingHandlerAdapter.java

@ -117,8 +117,8 @@ import org.springframework.web.util.WebUtils; @@ -117,8 +117,8 @@ import org.springframework.web.util.WebUtils;
public class RequestMappingHandlerAdapter extends AbstractHandlerMethodAdapter
implements BeanFactoryAware, InitializingBean {
private static final boolean completionStagePresent = ClassUtils.isPresent("java.util.concurrent.CompletionStage",
RequestMappingHandlerAdapter.class.getClassLoader());
private static final boolean completionStagePresent = ClassUtils.isPresent(
"java.util.concurrent.CompletionStage", RequestMappingHandlerAdapter.class.getClassLoader());
private List<HandlerMethodArgumentResolver> customArgumentResolvers;
@ -739,8 +739,9 @@ public class RequestMappingHandlerAdapter extends AbstractHandlerMethodAdapter @@ -739,8 +739,9 @@ public class RequestMappingHandlerAdapter extends AbstractHandlerMethodAdapter
}
}
}
mav = invokeHandlerMethod(request, response, handlerMethod);
else {
mav = invokeHandlerMethod(request, response, handlerMethod);
}
if (getSessionAttributesHandler(handlerMethod).hasSessionAttributes()) {
applyCacheSeconds(response, this.cacheSecondsForSessionAttributeHandlers);

Loading…
Cancel
Save