摘要: 1.什么是反射? 就是正在运行,动态获取这个类的所有信息、 2.反射机制的作用 1.反编译: .class->.java 2.通过反射机制访问java对象的属性,方法,构造器方法等。 运用 package com.jlong.classfrorm; import com.jlong.entity.U 阅读全文
posted @ 2019-06-03 10:08 Gold_Long 阅读(231) 评论(0) 推荐(1) 编辑
摘要: static String jsonStr = "{\"sites\":[{\"name\":\"gold\",\"url\":\"www.baidu.com\"},{\"name\":\"jlong\",\"url\":\"http://baidu.com/\"}]}"; public stati 阅读全文
posted @ 2019-06-03 10:07 Gold_Long 阅读(229) 评论(0) 推荐(1) 编辑
摘要: public static void main(String[] args) throws DocumentException { SAXReader saxReader = new SAXReader(); Document read = saxReader.read(new File("E:// 阅读全文
posted @ 2019-06-03 10:06 Gold_Long 阅读(209) 评论(0) 推荐(1) 编辑