43.4.2 EnvironmentTestUtils
43.4.2 EnvironmentTestUtils
使用简单的key=value
字符串调用EnvironmentTestUtils
就可以快速添加属性到ConfigurableEnvironment
或ConfigurableApplicationContext
:
EnvironmentTestUtils.addEnvironment(env, "org=Spring", "name=Boot");
使用简单的key=value
字符串调用EnvironmentTestUtils
就可以快速添加属性到ConfigurableEnvironment
或ConfigurableApplicationContext
:
EnvironmentTestUtils.addEnvironment(env, "org=Spring", "name=Boot");