|
|
|
@ -40,8 +40,8 @@ public class BaseApplication extends JFinalConfig {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public static void main(String[] args) {
|
|
|
|
|
System.out.println("当前环境: " + getEnvPrefix());
|
|
|
|
|
String configFile = "undertow_{?}.properties".replace("{?}", getEnvPrefix());
|
|
|
|
|
System.out.println("加载容器配置文件: " + configFile);
|
|
|
|
|
UndertowServer.create(BaseApplication.class, configFile).start();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -55,7 +55,6 @@ public class BaseApplication extends JFinalConfig {
|
|
|
|
|
//加载配置文件
|
|
|
|
|
String configFile = "application_{?}.properties".replace("{?}", getEnvPrefix());
|
|
|
|
|
PropKit.use(configFile);
|
|
|
|
|
System.out.println("加载主配置文件: " + configFile);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|