摘要: 1、getXXX 和 getDeclaredXXX java 里 Class<?> 有下面这些方法: 类似的方法有: 2、getMethod(s) 和 getDeclaredMethod(s) getDeclaredMethods只获取当前对象申明的方法,不包含继承过来的方法 getMethods获 阅读全文
posted @ 2018-06-11 22:44 Mr.yang.localhost 阅读(423) 评论(0) 推荐(0) 编辑
摘要: 自定义字段描述 获取字段自定义注解 输出: @com.demo.common.FieldDescrib(desc=正常情况是1-100, name=学生的年纪)@com.demo.common.FieldDescrib(desc=0:未知 1:男 2:女, name=学生的性别)name:age=2 阅读全文
posted @ 2018-06-11 22:00 Mr.yang.localhost 阅读(580) 评论(0) 推荐(0) 编辑