From 59e00e71d8d00b6d60b231f24dd3327f4d2907e4 Mon Sep 17 00:00:00 2001 From: "xueli.xue" Date: Wed, 21 Sep 2016 17:37:41 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=87=E6=A1=88=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../controller/interceptor/PermissionInterceptor.java | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/xxl-job-admin/src/main/java/com/xxl/job/admin/controller/interceptor/PermissionInterceptor.java b/xxl-job-admin/src/main/java/com/xxl/job/admin/controller/interceptor/PermissionInterceptor.java index eb592dd6..97bcf5fc 100644 --- a/xxl-job-admin/src/main/java/com/xxl/job/admin/controller/interceptor/PermissionInterceptor.java +++ b/xxl-job-admin/src/main/java/com/xxl/job/admin/controller/interceptor/PermissionInterceptor.java @@ -1,13 +1,12 @@ package com.xxl.job.admin.controller.interceptor; -import javax.servlet.http.HttpServletRequest; -import javax.servlet.http.HttpServletResponse; - +import com.xxl.job.admin.controller.annotation.PermessionLimit; +import com.xxl.job.admin.core.util.CookieUtil; import org.springframework.web.method.HandlerMethod; import org.springframework.web.servlet.handler.HandlerInterceptorAdapter; -import com.xxl.job.admin.controller.annotation.PermessionLimit; -import com.xxl.job.admin.core.util.CookieUtil; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; /** * 权限拦截, 简易版 @@ -44,7 +43,7 @@ public class PermissionInterceptor extends HandlerInterceptorAdapter { HandlerMethod method = (HandlerMethod)handler; PermessionLimit permission = method.getMethodAnnotation(PermessionLimit.class); if (permission == null || permission.limit()) { - throw new Exception("登陆实效"); + throw new Exception("登陆失效"); } }