Rename spring.favicon.enabled property
Rename `spring.favicon.enabled` to `spring.mvc.favicon.enabled`. See gh-2377
This commit is contained in:
@@ -288,7 +288,7 @@ public class WebMvcAutoConfiguration {
|
||||
}
|
||||
|
||||
@Configuration
|
||||
@ConditionalOnProperty(value = "spring.favicon.enabled", matchIfMissing = true)
|
||||
@ConditionalOnProperty(value = "spring.mvc.favicon.enabled", matchIfMissing = true)
|
||||
public static class FaviconConfiguration implements ResourceLoaderAware {
|
||||
|
||||
private ResourceLoader resourceLoader;
|
||||
|
||||
@@ -374,7 +374,8 @@ public class WebMvcAutoConfigurationTests {
|
||||
this.context.register(Config.class, WebMvcAutoConfiguration.class,
|
||||
HttpMessageConvertersAutoConfiguration.class,
|
||||
PropertyPlaceholderAutoConfiguration.class);
|
||||
EnvironmentTestUtils.addEnvironment(this.context, "spring.favicon.enabled:false");
|
||||
EnvironmentTestUtils.addEnvironment(this.context,
|
||||
"spring.mvc.favicon.enabled:false");
|
||||
this.context.refresh();
|
||||
assertThat(
|
||||
this.context.getBeansOfType(ResourceHttpRequestHandler.class).get(
|
||||
|
||||
Reference in New Issue
Block a user