From 5f18184362c0b495b52500c3354fcd2279a8c0b9 Mon Sep 17 00:00:00 2001 From: wenc000 <450292408@qq.com> Date: Wed, 12 Aug 2020 16:36:08 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A4=84=E7=90=86=E5=BC=82=E5=B8=B8=E6=8D=95?= =?UTF-8?q?=E8=8E=B7=E7=B1=BB=E5=9E=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../client/socket/aspect/ClientExceptionAspect.java | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/cloud-central-control-client/src/main/java/com/cm/central/control/client/socket/aspect/ClientExceptionAspect.java b/cloud-central-control-client/src/main/java/com/cm/central/control/client/socket/aspect/ClientExceptionAspect.java index 4e66159..ea81982 100644 --- a/cloud-central-control-client/src/main/java/com/cm/central/control/client/socket/aspect/ClientExceptionAspect.java +++ b/cloud-central-control-client/src/main/java/com/cm/central/control/client/socket/aspect/ClientExceptionAspect.java @@ -1,19 +1,16 @@ package com.cm.central.control.client.socket.aspect; -import com.cm.central.control.client.socket.service.socket.BaseSocketService; import com.cm.central.control.client.socket.service.socket.exception.ExceptionServiceImpl; import com.cm.common.exception.base.SystemException; -import com.cm.socket.service.ISocketService; import org.aspectj.lang.ProceedingJoinPoint; import org.aspectj.lang.annotation.Around; import org.aspectj.lang.annotation.Aspect; import org.aspectj.lang.annotation.Pointcut; import org.springframework.core.annotation.Order; -import org.springframework.security.authentication.InsufficientAuthenticationException; +import org.springframework.security.core.AuthenticationException; import org.springframework.stereotype.Component; import javax.annotation.Resource; -import java.sql.SQLSyntaxErrorException; /** * @ClassName: ApiLogAspect @@ -44,8 +41,7 @@ public class ClientExceptionAspect { result = proceedingJoinPoint.proceed(); } catch (Throwable e) { boolean exceptionFlag = e instanceof SystemException - || e instanceof SQLSyntaxErrorException - || e instanceof InsufficientAuthenticationException; + || e instanceof AuthenticationException; if (!exceptionFlag) { new Thread(() -> { exceptionServiceImpl.writeThrowable(e);