Update 35.4.2. EnvironmentTestUtils.md
parent
fd654172fb
commit
e27e14da48
|
@ -0,0 +1,5 @@
|
|||
### 35.4.2. EnvironmentTestUtils
|
||||
|
||||
EnvironmentTestUtils允许你快速添加属性到一个ConfigurableEnvironment或ConfigurableApplicationContext。只需简单的使用key=value字符串调用它:
|
||||
```java
|
||||
EnvironmentTestUtils.addEnvironment(env, "org=Spring", "name=Boot");
|
Loading…
Reference in New Issue