org.springframework.mock.env包中包含Environment和PropertySource抽象的模拟实现(请参阅Bean定义配置文件和PropertySource抽象)。 MockEnvironment和MockPropertySource对于开发依赖于特定于环境的属性的代码的容器外测试非常有用。 org.springframework.mock.jndi包中包含JNDI ...