From fc279b7083422d0bb4a6113accc548dbf0d25457 Mon Sep 17 00:00:00 2001 From: Phillip Webb Date: Fri, 9 Sep 2022 12:45:24 -0700 Subject: [PATCH] Deprecate ThemeResolver auto-configuration Update `WebMvcAutoConfiguration` to deprecate the `ThemeResolver` bean to align with recent Spring Framework changes. --- .../boot/autoconfigure/web/servlet/WebMvcAutoConfiguration.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/web/servlet/WebMvcAutoConfiguration.java b/spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/web/servlet/WebMvcAutoConfiguration.java index ded6840f9b..5ef659fc0c 100644 --- a/spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/web/servlet/WebMvcAutoConfiguration.java +++ b/spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/web/servlet/WebMvcAutoConfiguration.java @@ -456,6 +456,8 @@ public class WebMvcAutoConfiguration { @Override @Bean @ConditionalOnMissingBean(name = DispatcherServlet.THEME_RESOLVER_BEAN_NAME) + @Deprecated + @SuppressWarnings("deprecation") public ThemeResolver themeResolver() { return super.themeResolver(); }