2019年4月26日

Java注解原理

摘要: 1. @interface不是接口是注解类,使用@interface自定义注解时,自动继承了java.lang.annotation.Annotation接口,由编译程序自动完成其他细节 2. @interface用来声明一个注解,其中的每一个方法实际上是声明了一个配置参数。方法的名称就是参数的名称 阅读全文

posted @ 2019-04-26 16:24 myf008 阅读(210) 评论(0) 推荐(0) 编辑

导航