Relax handler supports checks in RequestMappingHandlerAdapter

Issue: SPR-17420
This commit is contained in:
Brian Clozel
2018-10-22 20:31:41 +02:00
parent f68b1e0bce
commit 28cf7b728f

View File

@@ -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