| @@ -21,17 +21,17 @@ import java.io.IOException; | |||||
| * @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; | ||||