diff --git a/src/main/java/com/kwan/springbootkwan/aop/LogAspect.java b/src/main/java/com/kwan/springbootkwan/aop/LogAspect.java index 3a52a3c43a2d3acf68f08c5b01ae568534e8c2c8..6f0a1704bc5c0be650d1fb0f9898f501a1384ab4 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 {