用cglib生成的代理类取不到注解的问题
>
百度找了一下没找到,谷歌搜一下就出来了(会点英语就是好)
直接在注解上面加@Inherited
@Inherited
@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.TYPE)
public @interface MyAnnotation {
}
链接http://stackoverflow.com/questions/1706751/retain-annotations-on-cglib-proxies
文章来自:http://my.oschina.net/idiotsky/blog/292770