Update 35.4.1. ConfigFileApplicationContextInitializer.md

master
qibaoguang 2015-02-27 21:24:48 +08:00
parent c8628a358e
commit fd654172fb
1 changed files with 3 additions and 3 deletions

View File

@ -3,6 +3,6 @@
ConfigFileApplicationContextInitializer是一个ApplicationContextInitializer可以用来测试加载Spring Boot的application.properties文件。当不需要使用@SpringApplicationConfiguration提供的全部特性时你可以使用它。 ConfigFileApplicationContextInitializer是一个ApplicationContextInitializer可以用来测试加载Spring Boot的application.properties文件。当不需要使用@SpringApplicationConfiguration提供的全部特性时你可以使用它。
```java ```java
@ContextConfiguration(classes = Config.class, @ContextConfiguration(classes = Config.class,initializers = ConfigFileApplicationContextInitializer.class)
initializers = ConfigFileApplicationContextInitializer.class) ```
```