随笔分类 -  反射

反射
摘要:准备材料: 实体类: PrintDemo 注解类: PrintName 注解处理器: AnnotationUtil 注解测试类: AnnotationMain 直接上代码: 效果如下: 结束🔚 阅读全文
posted @ 2019-09-09 16:05 前往幸福的路上 阅读(1430) 评论(0) 推荐(0)
摘要://简单的例子public class ReflextionMain { public static void main(String[] args) throws ClassNotFoundException, IllegalAccessException, InstantiationException, InvocationTargetException, NoSuchFieldExcepti 阅读全文
posted @ 2019-09-09 15:28 前往幸福的路上 阅读(388) 评论(0) 推荐(0)