??????Java???
???????????? ???????[ 2012/11/20 9:50:45 ] ????????
???????????????????????@Target??@Retention??@Documented??@Inherited????????????????£?
????1??@Target
???????????????????????????? ElemenetType ??????????
?????? ElemenetType.CONSTRUCTOR ????????????
?????? ElemenetType.FIELD ???????????? enum ???????
?????? ElemenetType.LOCAL_VARIABLE ?????????????
?????? ElemenetType.METHOD ??????????
?????? ElemenetType.PACKAGE ????????
?????? ElemenetType.PARAMETER ??????????
?????? ElemenetType.TYPE ????????????????????enum??????
????2??@Retention
??????????????????????????????? RetentionPolicy ??????????
?????? RetentionPolicy.SOURCE ?????????????????
?????? RetentionPolicy.CLASS ?????class????п????????VM??????
?????? RetentionPolicy.RUNTIME VM??????????????????????????????????????????????
????????????????@Override?????Retention???SOURCE???????????????Щ?????????????@Deprecated?????Retention???RUNTIME?????????????????????????????????Deprecated???????????е????????????÷??????Deprecated??
????3??@Documented
???????????????? javadoc ??
????4??@Inherited
?????????????и????е????
????3????????
????????????????????????????
@Description(value="??????????")
public class TestAnnotation {
}
???????????????@<?????>(<?????1>=<????1>??<?????1>=<????1>??...)
????????????????????????????{}???и??????boolean????????????????{true??false??true}???????????????????????
????1???????????
@AnnoExample(id= 2868724?? synopsis = "Enable time-travel"?? engineer = "Mr. Peabody")
??????
???·???
??????????????????
2023/3/23 14:23:39???д?ò??????????
2023/3/22 16:17:39????????????????????Щ??
2022/6/14 16:14:27??????????????????????????
2021/10/18 15:37:44???????????????
2021/9/17 15:19:29???·???????·
2021/9/14 15:42:25?????????????
2021/5/28 17:25:47??????APP??????????
2021/5/8 17:01:11