Java自定义Annotation学习1
本次学习的目标是为了获取如下Java类成员中ID的值:
注意:如果是Method,需要使用getDeclaredMethods(),如果用getMethods()不会返回我们所需要的结果
输出结果:The field Name is:public java.lang.String com.perficient.annotation.WebPage.buttonAId is:AThe field Name is:public java.lang.String com.perficient.annotation.WebPage.buttonBId is:B