Browse Source

/、.test

release_toaliyun_real
xhxu 4 years ago
parent
commit
03ee1383d6
1 changed files with 4 additions and 4 deletions
  1. +4
    -4
      mallinkCApi/src/main/java/com/iformall/interceptor/TestControllerReturnAspect.java

+ 4
- 4
mallinkCApi/src/main/java/com/iformall/interceptor/TestControllerReturnAspect.java View File

@@ -24,17 +24,17 @@ import lombok.extern.slf4j.Slf4j;
* @author alascor * @author alascor
* *
*/ */
@Aspect
@Configuration
//@Aspect
//@Configuration
@Slf4j @Slf4j
public class TestControllerReturnAspect { public class TestControllerReturnAspect {


@Pointcut("execution(* com.iformall.controller.*Controller.*(..))")
// @Pointcut("execution(* com.iformall.controller.*Controller.*(..))")
public void excudeService() { public void excudeService() {
} }
@Around("excudeService()")
// @Around("excudeService()")
public Object doAround(ProceedingJoinPoint pjp) throws Throwable { public Object doAround(ProceedingJoinPoint pjp) throws Throwable {
RequestAttributes ra = RequestContextHolder.getRequestAttributes(); RequestAttributes ra = RequestContextHolder.getRequestAttributes();
ServletRequestAttributes sra = (ServletRequestAttributes) ra; ServletRequestAttributes sra = (ServletRequestAttributes) ra;


Loading…
Cancel
Save