Browse Source

@SessionAttributes works when used on an annotated controller interface with AOP proxying (SPR-6797)

pull/23217/head
Juergen Hoeller 16 years ago
parent
commit
56e119e822
  1. 2
      org.springframework.web/src/main/java/org/springframework/web/bind/annotation/support/HandlerMethodResolver.java

2
org.springframework.web/src/main/java/org/springframework/web/bind/annotation/support/HandlerMethodResolver.java

@ -90,7 +90,7 @@ public class HandlerMethodResolver { @@ -90,7 +90,7 @@ public class HandlerMethodResolver {
}, ReflectionUtils.NON_BRIDGED_METHODS);
}
this.typeLevelMapping = AnnotationUtils.findAnnotation(handlerType, RequestMapping.class);
SessionAttributes sessionAttributes = handlerType.getAnnotation(SessionAttributes.class);
SessionAttributes sessionAttributes = AnnotationUtils.findAnnotation(handlerType, SessionAttributes.class);
this.sessionAttributesFound = (sessionAttributes != null);
if (this.sessionAttributesFound) {
this.sessionAttributeNames.addAll(Arrays.asList(sessionAttributes.value()));

Loading…
Cancel
Save