Rename properties that have - in their prefix
Rename `reactive-repositories` to `reactiverepositories` and replace `spring.resources.cache-control` with `spring.resources.cache.control`. Fixes gh-11090
This commit is contained in:
@@ -52,7 +52,7 @@ public class DevToolsPropertyDefaultsPostProcessor implements EnvironmentPostPro
|
||||
devToolsProperties.put("spring.mustache.cache", "false");
|
||||
devToolsProperties.put("server.session.persistent", "true");
|
||||
devToolsProperties.put("spring.h2.console.enabled", "true");
|
||||
devToolsProperties.put("spring.resources.cache-period", "0");
|
||||
devToolsProperties.put("spring.resources.cache.period", "0");
|
||||
devToolsProperties.put("spring.resources.chain.cache", "false");
|
||||
devToolsProperties.put("spring.template.provider.cache", "false");
|
||||
devToolsProperties.put("spring.mvc.log-resolved-exception", "true");
|
||||
|
||||
@@ -121,7 +121,7 @@ public class LocalDevToolsAutoConfigurationTests {
|
||||
public void resourceCachePeriodIsZero() throws Exception {
|
||||
this.context = initializeAndRun(WebResourcesConfig.class);
|
||||
ResourceProperties properties = this.context.getBean(ResourceProperties.class);
|
||||
assertThat(properties.getCachePeriod()).isEqualTo(Duration.ZERO);
|
||||
assertThat(properties.getCache().getPeriod()).isEqualTo(Duration.ZERO);
|
||||
}
|
||||
|
||||
@Test
|
||||
|
||||
Reference in New Issue
Block a user