Avoid duplicate registration of [RequestBody|ResponseBody]Advice
Prior to this commit, if a @ControllerAdvice bean implemented both
RequestBodyAdvice and ResponseBodyAdvice, it was registered twice in
RequestMappingHandlerAdapter, leading to duplicate application of the
same logic.
This commit ensures that such instances are only registered once.
Fixes gh-22638
@ -612,16 +613,18 @@ public class RequestMappingHandlerAdapter extends AbstractHandlerMethodAdapter
@@ -612,16 +613,18 @@ public class RequestMappingHandlerAdapter extends AbstractHandlerMethodAdapter
logger.info("Detected @InitBinder methods in "+adviceBean);