aop排除websocket
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user