|
@@ -9,6 +9,8 @@ import com.jfinal.kit.PropKit;
|
|
|
import com.jfinal.plugin.activerecord.ActiveRecordPlugin;
|
|
|
import com.jfinal.plugin.druid.DruidPlugin;
|
|
|
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.template.Engine;
|
|
|
import com.jzdsh.auto.app.common.DruidKit;
|
|
@@ -57,6 +59,7 @@ public class JFConfig extends JFinalConfig{
|
|
|
|
|
|
// 是否对超类中的属性进行注入
|
|
|
me.setInjectSuperClass(true);
|
|
|
+ me.setBaseUploadPath("my");
|
|
|
}
|
|
|
|
|
|
/**
|
|
@@ -68,7 +71,7 @@ public class JFConfig extends JFinalConfig{
|
|
|
*/
|
|
|
@Override
|
|
|
public void configRoute(Routes me) {
|
|
|
- me.add(new FrontRoutes());
|
|
|
+ //me.add(new FrontRoutes());
|
|
|
me.add(new AdminRoutes());
|
|
|
}
|
|
|
|
|
@@ -80,7 +83,11 @@ public class JFConfig extends JFinalConfig{
|
|
|
me.setDevMode(p.getBoolean("engineDevMode", false));
|
|
|
|
|
|
// 配置用于主菜单的 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
|
|
|
public void configInterceptor(Interceptors me) {
|
|
|
- me.add(new LoginSessionInterceptor());
|
|
|
+
|
|
|
+ //me.add(new LoginSessionInterceptor());
|
|
|
}
|
|
|
|
|
|
@Override
|