diff --git a/IV. Spring Boot features/35.4.2. EnvironmentTestUtils.md b/IV. Spring Boot features/35.4.2. EnvironmentTestUtils.md index e69de29..3e6f197 100644 --- a/IV. Spring Boot features/35.4.2. EnvironmentTestUtils.md +++ b/IV. Spring Boot features/35.4.2. EnvironmentTestUtils.md @@ -0,0 +1,5 @@ +### 35.4.2. EnvironmentTestUtils + +EnvironmentTestUtils允许你快速添加属性到一个ConfigurableEnvironment或ConfigurableApplicationContext。只需简单的使用key=value字符串调用它: +```java +EnvironmentTestUtils.addEnvironment(env, "org=Spring", "name=Boot");