From 159c65db48aafc10bbbf244062cc6be35beff6f8 Mon Sep 17 00:00:00 2001 From: wenc000 <450292408@qq.com> Date: Thu, 30 Jan 2020 23:20:13 +0800 Subject: [PATCH] =?UTF-8?q?=E6=95=B4=E7=90=86import?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- cloud-common/pom.xml | 1 - .../src/main/java/com/cm/common/base/AbstractController.java | 1 - .../src/main/java/com/cm/common/base/AbstractService.java | 1 - .../main/java/com/cm/common/component/SecurityComponent.java | 4 ---- 4 files changed, 7 deletions(-) diff --git a/cloud-common/pom.xml b/cloud-common/pom.xml index 728b53a..5e139f9 100644 --- a/cloud-common/pom.xml +++ b/cloud-common/pom.xml @@ -13,7 +13,6 @@ 1.0.1-SNAPSHOT - org.springframework.boot spring-boot-starter-security diff --git a/cloud-common/src/main/java/com/cm/common/base/AbstractController.java b/cloud-common/src/main/java/com/cm/common/base/AbstractController.java index 964a767..fb118f1 100644 --- a/cloud-common/src/main/java/com/cm/common/base/AbstractController.java +++ b/cloud-common/src/main/java/com/cm/common/base/AbstractController.java @@ -11,7 +11,6 @@ import org.springframework.util.StringUtils; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpSession; import java.net.URLDecoder; -import java.util.Enumeration; import java.util.HashMap; import java.util.Map; diff --git a/cloud-common/src/main/java/com/cm/common/base/AbstractService.java b/cloud-common/src/main/java/com/cm/common/base/AbstractService.java index cc009cb..c02aef0 100644 --- a/cloud-common/src/main/java/com/cm/common/base/AbstractService.java +++ b/cloud-common/src/main/java/com/cm/common/base/AbstractService.java @@ -8,7 +8,6 @@ import com.cm.common.exception.SearchException; import com.cm.common.pojo.bos.UserInfoBO; import com.cm.common.pojo.dtos.ZTreeDTO; import com.cm.common.token.app.AppTokenManager; -import com.cm.common.token.app.entity.AppToken; import com.cm.common.token.app.entity.AppTokenUser; import com.cm.common.utils.DateUtil; import org.slf4j.Logger; diff --git a/cloud-common/src/main/java/com/cm/common/component/SecurityComponent.java b/cloud-common/src/main/java/com/cm/common/component/SecurityComponent.java index da7729d..442dddc 100644 --- a/cloud-common/src/main/java/com/cm/common/component/SecurityComponent.java +++ b/cloud-common/src/main/java/com/cm/common/component/SecurityComponent.java @@ -1,11 +1,8 @@ package com.cm.common.component; -import com.alibaba.fastjson.JSONObject; -import com.cm.common.pojo.bos.RoleBO; import com.cm.common.pojo.bos.RoleGrantedAuthority; import com.cm.common.pojo.bos.UserBO; import com.cm.common.pojo.bos.UserInfoBO; -import org.apache.commons.lang3.StringUtils; import org.springframework.security.core.Authentication; import org.springframework.security.core.GrantedAuthority; import org.springframework.security.core.context.SecurityContextHolder; @@ -14,7 +11,6 @@ import org.springframework.stereotype.Component; import java.util.ArrayList; import java.util.Collection; import java.util.List; -import java.util.Set; /** * @ClassName: SecurityCompontent