|
@@ -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;
|
|
@@ -68,7 +70,7 @@ public class JFConfig extends JFinalConfig{
|
|
|
@Override
|
|
|
public void configRoute(Routes me) {
|
|
|
me.add(new FrontRoutes());
|
|
|
- //me.add(new AdminRoutes());
|
|
|
+ me.add(new AdminRoutes());
|
|
|
}
|
|
|
|
|
|
/**
|
|
@@ -79,7 +81,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 +128,7 @@ public class JFConfig extends JFinalConfig{
|
|
|
@Override
|
|
|
public void configInterceptor(Interceptors me) {
|
|
|
|
|
|
- // me.add(new LoginSessionInterceptor());
|
|
|
+ //me.add(new LoginSessionInterceptor());
|
|
|
}
|
|
|
|
|
|
@Override
|