From 837c7f58d555e7f20f2693b7a5dc8e75f932d45b Mon Sep 17 00:00:00 2001 From: "fjy8018@qq.com" <27894869fjy> Date: Fri, 6 Jul 2018 15:47:37 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A1=A5=E5=85=85=E6=97=A0=E6=9D=83=E8=AE=BF?= =?UTF-8?q?=E9=97=AE=E9=A1=B5=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../fjy8018/shiro/controller/NavController.java | 4 ++++ src/main/webapp/pages/unauthorized.jsp | 16 ++++++++++++++++ 2 files changed, 20 insertions(+) create mode 100644 src/main/webapp/pages/unauthorized.jsp diff --git a/src/main/java/top/fjy8018/shiro/controller/NavController.java b/src/main/java/top/fjy8018/shiro/controller/NavController.java index 66b1f2c..87c6f9c 100644 --- a/src/main/java/top/fjy8018/shiro/controller/NavController.java +++ b/src/main/java/top/fjy8018/shiro/controller/NavController.java @@ -24,4 +24,8 @@ public class NavController { return "admin success"; } + @RequestMapping("/unauthorized") + public String unauthorized() { + return "unauthorized"; + } } diff --git a/src/main/webapp/pages/unauthorized.jsp b/src/main/webapp/pages/unauthorized.jsp new file mode 100644 index 0000000..96ff3e4 --- /dev/null +++ b/src/main/webapp/pages/unauthorized.jsp @@ -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" %> + +
+