Deprecate ThemeResolver auto-configuration

Update `WebMvcAutoConfiguration` to deprecate the `ThemeResolver` bean
to align with recent Spring Framework changes.
pull/32224/head
Phillip Webb 2 years ago
parent aafceb3868
commit fc279b7083

@ -456,6 +456,8 @@ public class WebMvcAutoConfiguration {
@Override @Override
@Bean @Bean
@ConditionalOnMissingBean(name = DispatcherServlet.THEME_RESOLVER_BEAN_NAME) @ConditionalOnMissingBean(name = DispatcherServlet.THEME_RESOLVER_BEAN_NAME)
@Deprecated
@SuppressWarnings("deprecation")
public ThemeResolver themeResolver() { public ThemeResolver themeResolver() {
return super.themeResolver(); return super.themeResolver();
} }

Loading…
Cancel
Save