|
|
|
@@ -24,17 +24,17 @@ import lombok.extern.slf4j.Slf4j; |
|
|
|
* @author alascor |
|
|
|
* |
|
|
|
*/ |
|
|
|
@Aspect |
|
|
|
@Configuration |
|
|
|
//@Aspect |
|
|
|
//@Configuration |
|
|
|
@Slf4j |
|
|
|
public class TestControllerReturnAspect { |
|
|
|
|
|
|
|
|
|
|
|
@Pointcut("execution(* com.iformall.controller.*Controller.*(..))") |
|
|
|
// @Pointcut("execution(* com.iformall.controller.*Controller.*(..))") |
|
|
|
public void excudeService() { |
|
|
|
} |
|
|
|
|
|
|
|
@Around("excudeService()") |
|
|
|
// @Around("excudeService()") |
|
|
|
public Object doAround(ProceedingJoinPoint pjp) throws Throwable { |
|
|
|
RequestAttributes ra = RequestContextHolder.getRequestAttributes(); |
|
|
|
ServletRequestAttributes sra = (ServletRequestAttributes) ra; |
|
|
|
|