摘要: 转自:https://www.cnblogs.com/mh-study/p/7792251.html Java时间格式转换大全 import java.text.*; import java.util.Calendar; public class VeDate { /** * 获取现在时间 * * 阅读全文
posted @ 2020-06-03 19:03 小灰灰大世界 阅读(168) 评论(0) 推荐(0)
摘要: 位于org.w3c.dom操作XML会比较简单,就是将XML看做是一颗树,DOM就是对这颗树的一个数据结构的描述,但对大型XML文件效果可能会不理想 首先来了解点Java DOM 的 API:1.解析器工厂类:DocumentBuilderFactory 创建的方法:DocumentBuilderF 阅读全文
posted @ 2020-06-02 18:53 小灰灰大世界 阅读(413) 评论(0) 推荐(0)
摘要: @Select("<script>" + "SELECT " + "w.warehouse_name, " + "w.country_name, " + "w.province_name, " + "w.consignee, " + "w.consignee_cellphone, " + "w.fu 阅读全文
posted @ 2020-06-02 18:52 小灰灰大世界 阅读(101) 评论(0) 推荐(0)
摘要: 方法一DOMImplementationLS lsImpl = (DOMImplementationLS)node.getOwnerDocument().getImplementation().getFeature("LS", "3.0"); LSSerializer serializer = ls 阅读全文
posted @ 2020-06-02 18:51 小灰灰大世界 阅读(342) 评论(0) 推荐(0)
摘要: 抓取时间public String getDeliveryTimeStart(){ SimpleDateFormat sf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); Calendar c = Calendar.getInstance(); Syst 阅读全文
posted @ 2020-06-02 18:33 小灰灰大世界 阅读(246) 评论(0) 推荐(0)
摘要: 1.当拿到的xml是String 类型的 String xml = "<User>" + "<name>张三</name>" + "<sex>男</sex>" + "<age>28</age>" + "</User>";通过下面方法就可以转成java对象 public static <T> T xm 阅读全文
posted @ 2020-06-02 18:06 小灰灰大世界 阅读(1870) 评论(0) 推荐(0)