File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed
spring-webmvc/src/main/java/org/springframework/web/servlet/handler Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change 3131import javax .servlet .ServletException ;
3232import javax .servlet .http .HttpServletRequest ;
3333
34+ import org .springframework .aop .support .AopUtils ;
3435import org .springframework .beans .factory .BeanFactoryUtils ;
3536import org .springframework .beans .factory .InitializingBean ;
3637import org .springframework .core .MethodIntrospector ;
@@ -223,7 +224,9 @@ public T inspect(Method method) {
223224 logger .debug (methods .size () + " request handler methods found on " + userType + ": " + methods );
224225 }
225226 for (Map .Entry <Method , T > entry : methods .entrySet ()) {
226- registerHandlerMethod (handler , entry .getKey (), entry .getValue ());
227+ Method invocableMethod = AopUtils .selectInvocableMethod (entry .getKey (), userType );
228+ T mapping = entry .getValue ();
229+ registerHandlerMethod (handler , invocableMethod , mapping );
227230 }
228231 }
229232
You can’t perform that action at this time.
0 commit comments