Java元注解@Retention规则

Java元注解@Retention规则 @Retention是java当中的一个元注解,该元注解通常都是用于对软件的测试 运行时注解(RetentionPolicy.RUNTIME) 1、适用方式:     @Retention(RetentionPolicy.RUNTIME)                    @interface Task{.......}     参数RetentionP
相关文章
相关标签/搜索