提交 56e119e8 编写于 作者: J Juergen Hoeller

@SessionAttributes works when used on an annotated controller interface with...

@SessionAttributes works when used on an annotated controller interface with AOP proxying (SPR-6797)
上级 7832381d
......@@ -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()));
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册