mirror of
https://github.com/spring-projects/spring-boot.git
synced 2024-09-03 04:26:12 +08:00
Polish
See gh-9330
This commit is contained in:
parent
7254ae84ab
commit
b5709fd618
@ -678,7 +678,7 @@ public class WebMvcAutoConfigurationTests {
|
|||||||
assertThat(validator).isInstanceOf(WebMvcValidator.class);
|
assertThat(validator).isInstanceOf(WebMvcValidator.class);
|
||||||
Object defaultValidator = this.context.getBean("defaultValidator");
|
Object defaultValidator = this.context.getBean("defaultValidator");
|
||||||
assertThat(((WebMvcValidator) validator).getTarget()).isSameAs(defaultValidator);
|
assertThat(((WebMvcValidator) validator).getTarget()).isSameAs(defaultValidator);
|
||||||
// Primary Spring validator is the one use by MVC behind the scenes
|
// Primary Spring validator is the one used by MVC behind the scenes
|
||||||
assertThat(this.context.getBean(Validator.class)).isEqualTo(defaultValidator);
|
assertThat(this.context.getBean(Validator.class)).isEqualTo(defaultValidator);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -738,7 +738,7 @@ public class WebMvcAutoConfigurationTests {
|
|||||||
Object defaultValidator = this.context.getBean("defaultValidator");
|
Object defaultValidator = this.context.getBean("defaultValidator");
|
||||||
assertThat(((WebMvcValidator) validator).getTarget())
|
assertThat(((WebMvcValidator) validator).getTarget())
|
||||||
.isSameAs(defaultValidator);
|
.isSameAs(defaultValidator);
|
||||||
// Primary Spring validator is the one use by MVC behind the scenes
|
// Primary Spring validator is the one used by MVC behind the scenes
|
||||||
assertThat(this.context.getBean(Validator.class)).isEqualTo(defaultValidator);
|
assertThat(this.context.getBean(Validator.class)).isEqualTo(defaultValidator);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -4055,8 +4055,8 @@ production usage, but it's great for getting started and making sure that you un
|
|||||||
the features. When you have made up your mind about the cache provider to use, please make
|
the features. When you have made up your mind about the cache provider to use, please make
|
||||||
sure to read its documentation to figure out how to configure the caches that your
|
sure to read its documentation to figure out how to configure the caches that your
|
||||||
application uses. Practically all providers require you to explicitly configure every
|
application uses. Practically all providers require you to explicitly configure every
|
||||||
cache that you use in the application. Some offers a way to build default caches that you
|
cache that you use in the application. Some offer a way to customize the default caches
|
||||||
need to specify with the `spring.cache.cache-names` property.
|
defined by the `spring.cache.cache-names` property.
|
||||||
|
|
||||||
TIP: It is also possible to {spring-reference}/#cache-annotations-put[update] or
|
TIP: It is also possible to {spring-reference}/#cache-annotations-put[update] or
|
||||||
{spring-reference}/#cache-annotations-evict[evict] data from the cache transparently.
|
{spring-reference}/#cache-annotations-evict[evict] data from the cache transparently.
|
||||||
@ -4346,7 +4346,7 @@ If none of the other providers can be found, a simple implementation using a
|
|||||||
`ConcurrentHashMap` as cache store is configured. This is the default if no caching
|
`ConcurrentHashMap` as cache store is configured. This is the default if no caching
|
||||||
library is present in your application. Caches are created on-the-fly by default but you
|
library is present in your application. Caches are created on-the-fly by default but you
|
||||||
can restrict the list of available caches using the `cache-names` property. For instance,
|
can restrict the list of available caches using the `cache-names` property. For instance,
|
||||||
if you you want only a `foo` and `bar` caches:
|
if you want only `foo` and `bar` caches:
|
||||||
|
|
||||||
[source,properties,indent=0]
|
[source,properties,indent=0]
|
||||||
----
|
----
|
||||||
|
@ -32,7 +32,7 @@ import org.springframework.test.context.junit4.SpringRunner;
|
|||||||
import static org.assertj.core.api.Assertions.assertThat;
|
import static org.assertj.core.api.Assertions.assertThat;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Integration tests for {@link SpringBootTestContextBootstrapper} with and
|
* Integration tests for {@link SpringBootTestContextBootstrapper} with
|
||||||
* {@link ApplicationContextInitializer}.
|
* {@link ApplicationContextInitializer}.
|
||||||
*
|
*
|
||||||
* @author Phillip Webb
|
* @author Phillip Webb
|
||||||
|
Loading…
Reference in New Issue
Block a user