如标题:我定义了一个注解,接口,拦截器,代码如下:
@Retention(RetentionPolicy.RUNTIME)
@Target({ElementType.METHOD, ElementType.ANNOTATION_TYPE})
@Documented
public @interface Test
@Test
List<Test> test(Object ...);
@Around("@annotation(org.xxx.annotation.Test)")
public Object Interceptor(ProceedingJoinPoint pjp) throws Throwable
接口是没有实现方法的我的想法是:拦截到接口被调用,我动态的实现,然后直接返回给调用处值可是,我不知道是不是不能这样拦截.我始终无法拦截到接口被调用.
添加回答
举报
0/150
提交
取消
