aop排除websocket

This commit is contained in:
2023-01-29 16:53:25 +08:00
parent 8a870bbd11
commit 8b055a5fe5

View File

@@ -2,8 +2,10 @@ package org.nl.config.plumelog;
import com.plumelog.trace.aspect.AbstractAspect;
import org.aspectj.lang.JoinPoint;
import org.aspectj.lang.annotation.AfterThrowing;
import org.aspectj.lang.annotation.Around;
import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.annotation.Pointcut;
import org.springframework.stereotype.Component;
/**
@@ -14,7 +16,12 @@ import org.springframework.stereotype.Component;
@Aspect
@Component
public class AspectConfig extends AbstractAspect {
@Around("within(org.nl..*))")
//@Pointcut注解声明切点
@Pointcut("within(org.nl..*) && !within(org.nl.modules.mnt.websocket.WebSocketServer)")
public void performance() {
}
@Around("performance()")
public Object around(JoinPoint joinPoint) throws Throwable {
return aroundExecute(joinPoint);
}