Update 35.4.2. EnvironmentTestUtils.md

master
qibaoguang 2015-02-27 21:25:40 +08:00
parent fd654172fb
commit e27e14da48
1 changed files with 5 additions and 0 deletions

View File

@ -0,0 +1,5 @@
### 35.4.2. EnvironmentTestUtils
EnvironmentTestUtils允许你快速添加属性到一个ConfigurableEnvironment或ConfigurableApplicationContext。只需简单的使用key=value字符串调用它
```java
EnvironmentTestUtils.addEnvironment(env, "org=Spring", "name=Boot");