我可以使用
在用于弹簧启动的测试中配置activeProfiles@ActiveProfiles("mynewone")
@RunWith(SpringJUnit4ClassRunner.class)
public class FooTest extends AbstractIntTest
我不了解spring-documentation如何将我的配置文件“ mynewone”添加到已经运行的配置文件中。如果像上面那样配置它,则只有“ mynewone”处于活动状态。
答案 0 :(得分:0)
在应用程序属性文件中使用spring.profiles.include=mynewone
。