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