Skip to content

Commit 28cf7b7

Browse files
committed
Relax handler supports checks in RequestMappingHandlerAdapter
Issue: SPR-17420
1 parent f68b1e0 commit 28cf7b7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

spring-webflux/src/main/java/org/springframework/web/reactive/result/method/annotation/RequestMappingHandlerAdapter.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ public void afterPropertiesSet() throws Exception {
178178

179179
@Override
180180
public boolean supports(Object handler) {
181-
return HandlerMethod.class.equals(handler.getClass());
181+
return handler instanceof HandlerMethod;
182182
}
183183

184184
@Override

0 commit comments

Comments
 (0)