补充无权访问页面
This commit is contained in:
@@ -24,4 +24,8 @@ public class NavController {
|
||||
return "admin success";
|
||||
}
|
||||
|
||||
@RequestMapping("/unauthorized")
|
||||
public String unauthorized() {
|
||||
return "unauthorized";
|
||||
}
|
||||
}
|
||||
|
||||
16
src/main/webapp/pages/unauthorized.jsp
Normal file
16
src/main/webapp/pages/unauthorized.jsp
Normal file
@@ -0,0 +1,16 @@
|
||||
<%--
|
||||
Created by IntelliJ IDEA.
|
||||
User: F嘉阳
|
||||
Date: 2018/7/6
|
||||
Time: 15:46
|
||||
To change this template use File | Settings | File Templates.
|
||||
--%>
|
||||
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
|
||||
<html>
|
||||
<head>
|
||||
<title>无权访问</title>
|
||||
</head>
|
||||
<body>
|
||||
<h1>无权访问</h1>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user