mirror of
https://github.com/spring-projects/spring-framework
synced 2026-06-08 17:33:33 +00:00
Relax handler supports checks in RequestMappingHandlerAdapter
Issue: SPR-17420
This commit is contained in:
+1
-1
@@ -178,7 +178,7 @@ public class RequestMappingHandlerAdapter implements HandlerAdapter, Application
|
||||
|
||||
@Override
|
||||
public boolean supports(Object handler) {
|
||||
return HandlerMethod.class.equals(handler.getClass());
|
||||
return handler instanceof HandlerMethod;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user