Deprecate ThemeResolver auto-configuration

Update `WebMvcAutoConfiguration` to deprecate the `ThemeResolver` bean
to align with recent Spring Framework changes.
This commit is contained in:
Phillip Webb
2022-09-09 12:45:24 -07:00
parent aafceb3868
commit fc279b7083

View File

@@ -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();
}