Springboot常用注解之@Inherited和@interface

1. @Inherited:允许子类继承父类的注解,仅限于类注解有用,对于方法和属性无效。     测试元注解    1.1 包含@Inherited注解 @Documented @Retention(RetentionPolicy.RUNTIME) @Inherited public @interface InheritedTrue { String value(); }   1.2 不
相关文章
相关标签/搜索