我在做什么?我有一个应用程序,我想在不同的环境中进行测试-开发、暂存等我做什么?我正在使用mavencargo插件来部署应用程序war以运行集成测试。我需要什么?我需要根据cargo设置的环境变量推断spring.profiles.activetomcat7xdevelopment为什么?这样我就可以删除集成测试中的硬编码@ActiveProfiles("development")并且测试可以从环境变量中推断出什么是Activity配置文件问题-我找到了Springintegrationtestswithprofile其中提到使用ActiveProfilesResolver-我试图找到