Merge branch '2.1.x' into 2.2.x

Closes gh-21070
This commit is contained in:
Phillip Webb
2020-04-21 11:43:09 -07:00
2 changed files with 26 additions and 1 deletions

View File

@@ -402,6 +402,7 @@ public class WebMvcAutoConfiguration {
new TemplateAvailabilityProviders(applicationContext), applicationContext, getWelcomePage(),
this.mvcProperties.getStaticPathPattern());
welcomePageHandlerMapping.setInterceptors(getInterceptors(mvcConversionService, mvcResourceUrlProvider));
welcomePageHandlerMapping.setCorsConfigurations(getCorsConfigurations());
return welcomePageHandlerMapping;
}