From c0611570c2cea6a86caedf35bc1d3bd92b0166dd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=A7=A6=E8=8B=B1=E6=9D=B0?= <327782001@qq.com> Date: Tue, 24 Oct 2023 13:33:42 +0800 Subject: [PATCH] =?UTF-8?q?fix:=E5=8E=BB=E6=8E=89=E5=88=87=E9=9D=A2?= =?UTF-8?q?=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/com/kwan/springbootkwan/aop/LogAspect.java | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/src/main/java/com/kwan/springbootkwan/aop/LogAspect.java b/src/main/java/com/kwan/springbootkwan/aop/LogAspect.java index 3a52a3c..6f0a170 100644 --- a/src/main/java/com/kwan/springbootkwan/aop/LogAspect.java +++ b/src/main/java/com/kwan/springbootkwan/aop/LogAspect.java @@ -3,8 +3,12 @@ package com.kwan.springbootkwan.aop; import lombok.extern.slf4j.Slf4j; import org.aspectj.lang.JoinPoint; import org.aspectj.lang.ProceedingJoinPoint; -import org.aspectj.lang.annotation.*; -import org.springframework.stereotype.Component; +import org.aspectj.lang.annotation.After; +import org.aspectj.lang.annotation.AfterReturning; +import org.aspectj.lang.annotation.AfterThrowing; +import org.aspectj.lang.annotation.Around; +import org.aspectj.lang.annotation.Before; +import org.aspectj.lang.annotation.Pointcut; /** * AOP 实现方法拦截 @@ -13,8 +17,8 @@ import org.springframework.stereotype.Component; * @version : 2.2.0 * @date : 2022/12/19 16:17 */ -@Component -@Aspect +//@Component +//@Aspect @Slf4j public class LogAspect { -- GitLab