矫正判断

This commit is contained in:
meng 2019-05-01 21:48:14 +08:00
parent 30ec284bf3
commit 356da56035
2 changed files with 2 additions and 3 deletions

View File

@ -28,9 +28,9 @@ public class CustomErrorViewResolver implements ErrorViewResolver {
ModelAndView andView = new ModelAndView(); ModelAndView andView = new ModelAndView();
andView.addObject("message", model.get("message")); andView.addObject("message", model.get("message"));
if ("404".equals(status.value())) { if (status.value() == 404) {
andView.setViewName(PAGE_404); andView.setViewName(PAGE_404);
} else if ("403".equals(status.value())) { } else if (status.value() == 403) {
andView.setViewName(PAGE_403); andView.setViewName(PAGE_403);
} else if (isServerError) { } else if (isServerError) {
andView.setViewName(PAGE_500); andView.setViewName(PAGE_500);

View File

@ -25,7 +25,6 @@
<ul class="layui-nav layui-layout-left kit-nav"> <ul class="layui-nav layui-layout-left kit-nav">
<li class="layui-nav-item"><a href="javascript:s();">会员管理</a></li> <li class="layui-nav-item"><a href="javascript:s();">会员管理</a></li>
<li class="layui-nav-item"><a href="javascript:;" kit-target data-options="{url:'/article/articleList',icon:'&#xe658;',title:'文章管理',id:'966'}">文章管理</a></li> <li class="layui-nav-item"><a href="javascript:;" kit-target data-options="{url:'/article/articleList',icon:'&#xe658;',title:'文章管理',id:'966'}">文章管理</a></li>
<#--<li class="layui-nav-item"><a href="javascript:;" id="pay"><i class="fa fa-gratipay" aria-hidden="true"></i> 捐赠我</a></li>-->
<li class="layui-nav-item"> <li class="layui-nav-item">
<a href="javascript:;">其它系统</a> <a href="javascript:;">其它系统</a>
<dl class="layui-nav-child"> <dl class="layui-nav-child">