百度找了一下没找到,谷歌搜一下就出来了(会点英语就是好)
直接在注解上面加@Inherited
@Inherited
@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.TYPE)
public @interface MyAnnotation {
}
链接http://stackoverflow.com/questions/1706751/retain-annotations-on-cglib-proxies
百度找了一下没找到,谷歌搜一下就出来了(会点英语就是好)
直接在注解上面加@Inherited
@Inherited
@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.TYPE)
public @interface MyAnnotation {
}
链接http://stackoverflow.com/questions/1706751/retain-annotations-on-cglib-proxies
转载于:https://my.oschina.net/idiotsky/blog/292770