java注解

注解 annotation

内置注解

@override

元注解

注解其他注解 @target @retention @Documented @Inherited

@target 描述注解的作用范围 类、方法构造器 ····

@retention 表示需要在什么级别保存该注解信息 注解的作用时间一般用runtime

(source<class<runtime)

@document 说明该注解包含在javadoc中

@inherited 表示子类可以继承父类中注解

 

posted @ 2020-06-17 21:12  compileTom  阅读(144)  评论(0编辑  收藏  举报