Skip to content

Commit 7a11899

Browse files
committed
Stop using deprecated ThemeChangeInterceptor in WebConfiguration example
1 parent d185bb1 commit 7a11899

File tree

1 file changed

+0
-2
lines changed
  • framework-docs/src/main/java/org/springframework/docs/web/webmvc/mvcconfig/mvcconfiginterceptors

1 file changed

+0
-2
lines changed

framework-docs/src/main/java/org/springframework/docs/web/webmvc/mvcconfig/mvcconfiginterceptors/WebConfiguration.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@
2020
import org.springframework.web.servlet.config.annotation.InterceptorRegistry;
2121
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;
2222
import org.springframework.web.servlet.i18n.LocaleChangeInterceptor;
23-
import org.springframework.web.servlet.theme.ThemeChangeInterceptor;
2423

2524
// tag::snippet[]
2625
@Configuration
@@ -29,7 +28,6 @@ public class WebConfiguration implements WebMvcConfigurer {
2928
@Override
3029
public void addInterceptors(InterceptorRegistry registry) {
3130
registry.addInterceptor(new LocaleChangeInterceptor());
32-
registry.addInterceptor(new ThemeChangeInterceptor()).addPathPatterns("/**").excludePathPatterns("/admin/**");
3331
}
3432
}
3533
// end::snippet[]

0 commit comments

Comments
 (0)