1.项目里面遇到一个问题,自定义的注解 @PUSH,在 CGLIB 代理类里面无法从属性上获取,
@Documented
@Inherited
@Target({ ElementType.FIELD, ElementType.METHOD })
@Retention(RetentionPolicy.RUNTIME)
public @interface Push {
public String value() default "";
}
2.我百度过,也 google 过,其中有说到用 AnnotationUtils.findAnnotation 获取,但是这个是基于方法或者类的 没有基于属性的
3.所以我想知道在这种情况下 有没有办法可以获取到 属性 上的自定义注解 或者
可以帮我把 CGLIB 代理的类 转换成原本的类
@Documented
@Inherited
@Target({ ElementType.FIELD, ElementType.METHOD })
@Retention(RetentionPolicy.RUNTIME)
public @interface Push {
public String value() default "";
}
2.我百度过,也 google 过,其中有说到用 AnnotationUtils.findAnnotation 获取,但是这个是基于方法或者类的 没有基于属性的
3.所以我想知道在这种情况下 有没有办法可以获取到 属性 上的自定义注解 或者
可以帮我把 CGLIB 代理的类 转换成原本的类