Skip to content

Commit

Permalink
Stop using deprecated ThemeChangeInterceptor in WebConfiguration example
Browse files Browse the repository at this point in the history
  • Loading branch information
sbrannen committed Jun 3, 2024
1 parent d185bb1 commit 7a11899
Showing 1 changed file with 0 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
import org.springframework.web.servlet.config.annotation.InterceptorRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;
import org.springframework.web.servlet.i18n.LocaleChangeInterceptor;
import org.springframework.web.servlet.theme.ThemeChangeInterceptor;

// tag::snippet[]
@Configuration
Expand All @@ -29,7 +28,6 @@ public class WebConfiguration implements WebMvcConfigurer {
@Override
public void addInterceptors(InterceptorRegistry registry) {
registry.addInterceptor(new LocaleChangeInterceptor());
registry.addInterceptor(new ThemeChangeInterceptor()).addPathPatterns("/**").excludePathPatterns("/admin/**");
}
}
// end::snippet[]

0 comments on commit 7a11899

Please sign in to comment.