3
我正在尋找一種方法來設置碼頭春天輪廓編程,使應用程序所使用指定的配置文件服務器上的war文件,這是我的代碼:碼頭春天輪廓編程
final WebAppContext context = new WebAppContext();
context.setLogUrlOnStart(true);
context.setWar("target/deployables/myapp-rest/myapp-rest.war");
context.setContextPath("/" + TEST_APP_CONTEXT);
context.setParentLoaderPriority(true);
server.setHandler(context);
server.start();
我嘗試了幾件事,但沒有一個似乎工作...我需要通過-Dspring.profiles.active = myProfile