java
华夏追颖
做好自己
展开
-
Dom4j解析xml带有doctype
Dom4j解析xml时,如果存在doctype,应做以下操作SAXReader reader = new SAXReader(); reader.setValidation(false); reader.setFeature("http://apache.org/xml/features/nonvalidating/load-external-dtd",false); ...原创 2018-03-25 16:48:31 · 1621 阅读 · 1 评论 -
Java执行shell命令或cmd命令
执行命令加前缀cmd命令 : cmd /cshell命令: shell -cpublicstaticvoid exeCmd(String commandStr) throws Exception { BufferedReader br = null; try { Process p = Runt...原创 2018-03-25 18:40:26 · 806 阅读 · 0 评论