Springboot常用註解之@Inherited和@interface

1. @Inherited:允許子類繼承父類的註解,僅限於類註解有用,對於方法和屬性無效。     測試元註解    1.1 包含@Inherited註解 @Documented @Retention(RetentionPolicy.RUNTIME) @Inherited public @interface InheritedTrue { String value(); }   1.2 不
相關文章
相關標籤/搜索