From bf863779a389a07f62410f872eec63a4e4b1e6cc Mon Sep 17 00:00:00 2001
From: luxiaotao1123 <t1341870251@163.com>
Date: 星期六, 27 六月 2020 09:59:02 +0800
Subject: [PATCH] #
---
src/main/java/com/zy/common/web/RouterController.java | 15 +++++++++++++--
1 files changed, 13 insertions(+), 2 deletions(-)
diff --git a/src/main/java/com/zy/common/web/RouterController.java b/src/main/java/com/zy/common/web/RouterController.java
index 63fa812..5077891 100644
--- a/src/main/java/com/zy/common/web/RouterController.java
+++ b/src/main/java/com/zy/common/web/RouterController.java
@@ -1,5 +1,6 @@
package com.zy.common.web;
+import com.core.common.Cools;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
@@ -18,7 +19,7 @@
@RequestMapping("/")
public void index(HttpServletResponse response) {
try{
- String redirect = "/"+applicationName+"/views/index.html";
+ String redirect = Cools.isEmpty(applicationName)?"views/index.html":"/"+applicationName+"/views/index.html";
response.sendRedirect(redirect);
} catch (Exception ex){
ex.printStackTrace();
@@ -28,7 +29,17 @@
@RequestMapping("/login")
public void login(HttpServletResponse response) {
try{
- String redirect = "/"+applicationName+"/views/login.html";
+ String redirect = Cools.isEmpty(applicationName)?"/views/login.html":"/"+applicationName+"/views/login.html";
+ response.sendRedirect(redirect);
+ } catch (Exception ex){
+ ex.printStackTrace();
+ }
+ }
+
+ @RequestMapping("/pda")
+ public void pda(HttpServletResponse response) {
+ try{
+ String redirect = Cools.isEmpty(applicationName)?"/views/pda/login.html":"/"+applicationName+"/views/pda/login.html";
response.sendRedirect(redirect);
} catch (Exception ex){
ex.printStackTrace();
--
Gitblit v1.9.1