From 740f3b797f067ccb8e4663259db578e496e70701 Mon Sep 17 00:00:00 2001 From: rstoyanchev Date: Fri, 8 Sep 2023 10:07:02 +0100 Subject: [PATCH] Polishing See gh-31185 --- .../ROOT/pages/web/webmvc/mvc-config/interceptors.adoc | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/framework-docs/modules/ROOT/pages/web/webmvc/mvc-config/interceptors.adoc b/framework-docs/modules/ROOT/pages/web/webmvc/mvc-config/interceptors.adoc index ba64b99800..36c7d32956 100644 --- a/framework-docs/modules/ROOT/pages/web/webmvc/mvc-config/interceptors.adoc +++ b/framework-docs/modules/ROOT/pages/web/webmvc/mvc-config/interceptors.adoc @@ -65,8 +65,6 @@ NOTE: The XML config declares interceptors as `MappedInterceptor` beans, and tho turn detected by any `HandlerMapping` bean, including those from other frameworks. By contrast, the Java config passes interceptors only to the `HandlerMapping` beans it manages. To re-use the same interceptors across Spring MVC and other framework `HandlerMapping` -beans with the MVC Java config, either declare `MappedInterceptor` beans, or conifgure the -same interceptors in both the Java config and in other `HandlerMapping` beans. - - - +beans with the MVC Java config, either declare `MappedInterceptor` beans (and don't +manually add them in the Java config), or configure the same interceptors in both +the Java config and in other `HandlerMapping` beans.