Browse Source

2020/3/23

EDZ 4 years ago
parent
commit
56379ce6b4
1 changed files with 11 additions and 3 deletions
  1. 11 3
      code/auto/app/src/main/java/com/jzdsh/auto/app/JFConfig.java

+ 11 - 3
code/auto/app/src/main/java/com/jzdsh/auto/app/JFConfig.java

@@ -9,6 +9,8 @@ import com.jfinal.kit.PropKit;
 import com.jfinal.plugin.activerecord.ActiveRecordPlugin;
 import com.jfinal.plugin.activerecord.ActiveRecordPlugin;
 import com.jfinal.plugin.druid.DruidPlugin;
 import com.jfinal.plugin.druid.DruidPlugin;
 import com.jfinal.plugin.ehcache.EhCachePlugin;
 import com.jfinal.plugin.ehcache.EhCachePlugin;
+import com.jfinal.render.Render;
+import com.jfinal.render.ViewType;
 import com.jfinal.server.undertow.UndertowServer;
 import com.jfinal.server.undertow.UndertowServer;
 import com.jfinal.template.Engine;
 import com.jfinal.template.Engine;
 import com.jzdsh.auto.app.common.DruidKit;
 import com.jzdsh.auto.app.common.DruidKit;
@@ -57,6 +59,7 @@ public class JFConfig extends JFinalConfig{
 
 
         // 是否对超类中的属性进行注入
         // 是否对超类中的属性进行注入
         me.setInjectSuperClass(true);
         me.setInjectSuperClass(true);
+        me.setBaseUploadPath("my");
     }
     }
 
 
     /**
     /**
@@ -68,7 +71,7 @@ public class JFConfig extends JFinalConfig{
      */
      */
     @Override
     @Override
     public void configRoute(Routes me) {
     public void configRoute(Routes me) {
-        me.add(new FrontRoutes());
+        //me.add(new FrontRoutes());
         me.add(new AdminRoutes());
         me.add(new AdminRoutes());
     }
     }
 
 
@@ -80,7 +83,11 @@ public class JFConfig extends JFinalConfig{
         me.setDevMode(p.getBoolean("engineDevMode", false));
         me.setDevMode(p.getBoolean("engineDevMode", false));
 
 
         // 配置用于主菜单的 URL,导航到 https://jfinal.com
         // 配置用于主菜单的 URL,导航到 https://jfinal.com
-        me.addSharedObject("SSL", p.get("SSL"));
+        //me.addSharedObject("SSL", p.get("SSL"));
+
+        me.addSharedFunction("/src/main/webapp/common/__admin_layout.html");
+        me.addSharedFunction("/src/main/webapp/common/_admin_paginate.html");
+        me.addSharedFunction("/src/main/webapp/common/_menu.html");
     }
     }
 
 
     /**
     /**
@@ -122,7 +129,8 @@ public class JFConfig extends JFinalConfig{
 
 
     @Override
     @Override
     public void configInterceptor(Interceptors me) {
     public void configInterceptor(Interceptors me) {
-        me.add(new LoginSessionInterceptor());
+
+        //me.add(new LoginSessionInterceptor());
     }
     }
 
 
     @Override
     @Override