@Inherited

允许子类继承父类的注解。

@Retention

这个是声明注解的,@Retention(RetentionPolicy.RUNTIME),表示jvm运行时,此注解可被读出

相关文章: