diff --git a/dsGw/pom.xml b/dsGw/pom.xml
index 222bd094..fee414f0 100644
--- a/dsGw/pom.xml
+++ b/dsGw/pom.xml
@@ -71,5 +71,33 @@
snakeyaml
${snakeyaml.version}
+
+
+
+
+ io.jsonwebtoken
+ jjwt
+ 0.7.0
+
+
+ javax.xml.bind
+ jaxb-api
+ 2.3.0
+
+
+ com.sun.xml.bind
+ jaxb-impl
+ 2.3.0
+
+
+ com.sun.xml.bind
+ jaxb-core
+ 2.3.0
+
+
+ javax.activation
+ activation
+ 1.1.1
+
diff --git a/dsGw/src/main/java/com/dsideal/gw/GwApplication.java b/dsGw/src/main/java/com/dsideal/gw/GwApplication.java
index 1ec62616..221f7be0 100644
--- a/dsGw/src/main/java/com/dsideal/gw/GwApplication.java
+++ b/dsGw/src/main/java/com/dsideal/gw/GwApplication.java
@@ -38,6 +38,15 @@ public class GwApplication extends JFinalConfig {
public static Map routeList = new HashMap<>();
//白名单
public static Set whiteSet = new HashSet<>();
+
+ public static Prop PropKit;
+
+ static {
+ //加载配置文件
+ String configFile = "application_{?}.yaml".replace("{?}", getEnvPrefix());
+ PropKit = new YamlProp(configFile);
+ }
+
/**
* 配置常量
*/
@@ -45,16 +54,14 @@ public class GwApplication extends JFinalConfig {
public void configConstant(Constants me) {
//使用LogBack
me.setLogFactory(new LogBackLogFactory());
- //加载配置文件
- String configFile = "application_{?}.yaml".replace("{?}", getEnvPrefix());
- Prop PropKit = new YamlProp(configFile);
+
// 设置静态根目录为上传根目录
me.setBaseUploadPath(PropKit.get("uploadTempPath"));
// 获取所有配置项,得到路由表
for (Map.Entry