Commit ebdccda0 authored by yanzg's avatar yanzg

正则表达式匹配

parent e704c816
...@@ -15,8 +15,8 @@ import org.springframework.stereotype.Component; ...@@ -15,8 +15,8 @@ import org.springframework.stereotype.Component;
/** /**
* 接口切面,用于验证接口回调返回参数 * 接口切面,用于验证接口回调返回参数
*/ */
@Aspect //@Aspect
@Component //@Component
public class FeignAspect extends AbstractValidateAspect { public class FeignAspect extends AbstractValidateAspect {
private static final Logger logger = LoggerFactory.getLogger(FeignAspect.class); private static final Logger logger = LoggerFactory.getLogger(FeignAspect.class);
...@@ -24,7 +24,7 @@ public class FeignAspect extends AbstractValidateAspect { ...@@ -24,7 +24,7 @@ public class FeignAspect extends AbstractValidateAspect {
/** /**
* AOP的表达式 * AOP的表达式
*/ */
@Pointcut("execution(* *..feign..Feign..*(..))") // @Pointcut("bean(*Feign)")
public void feignAspect() { public void feignAspect() {
} }
......
...@@ -41,8 +41,8 @@ import java.util.concurrent.LinkedBlockingQueue; ...@@ -41,8 +41,8 @@ import java.util.concurrent.LinkedBlockingQueue;
* @author: Kang * @author: Kang
* @time: 2018年04月25日 11:43 * @time: 2018年04月25日 11:43
*/ */
@Aspect //@Aspect
@Component //@Component
public class WebAspect extends AbstractValidateAspect implements ThreadNext.Next { public class WebAspect extends AbstractValidateAspect implements ThreadNext.Next {
private static final Logger logger = LoggerFactory.getLogger(WebAspect.class); private static final Logger logger = LoggerFactory.getLogger(WebAspect.class);
...@@ -76,7 +76,7 @@ public class WebAspect extends AbstractValidateAspect implements ThreadNext.Next ...@@ -76,7 +76,7 @@ public class WebAspect extends AbstractValidateAspect implements ThreadNext.Next
/** /**
* exec aop point aspect * exec aop point aspect
*/ */
@Pointcut("execution(* *..web..Controller..*(..))") // @Pointcut("bean(*Controller)")
public void webAspect() { public void webAspect() {
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment