|
|
|
@ -33,6 +33,7 @@ import ${basePackage}.frame.utils.AESUtil;
|
|
|
|
|
import ${basePackage}.frame.utils.LogUtil;
|
|
|
|
|
import ${basePackage}.frame.utils.MD5Util;
|
|
|
|
|
import ${basePackage}.frame.utils.MapperUtil;
|
|
|
|
|
import ${basePackage}.frame.utils.RequestUtil;
|
|
|
|
|
|
|
|
|
|
import javax.servlet.http.HttpServletRequest;
|
|
|
|
|
import javax.servlet.http.HttpServletResponse;
|
|
|
|
@ -113,7 +114,8 @@ public class GlobalController implements ErrorController {
|
|
|
|
|
case 404:
|
|
|
|
|
return "404";
|
|
|
|
|
case 403:
|
|
|
|
|
if ((request.getServletPath().equals(homePage) || request.getServletPath().equals("/")) && LocalData.getToken() == null) {
|
|
|
|
|
String errorUrl = RequestUtil.getErrorUrl(request);
|
|
|
|
|
if ((errorUrl.equals(homePage) || errorUrl.equals("/")) && LocalData.getToken() == null) {
|
|
|
|
|
try {
|
|
|
|
|
response.sendRedirect("/login.htm");
|
|
|
|
|
} catch (IOException e) {
|
|
|
|
|