Java註解學習四:@Inherited的使用

一[email protected]      @Inherited:允許子類繼承父類的註解。   二.代碼 @Target(ElementType.TYPE) @Retention(RetentionPolicy.RUNTIME) @Inherited public @interface DBTable { public String name() default ""; } @Tar
相關文章
相關標籤/搜索