02 2017 档案
摘要://超过60s断开连接private final static int TIMEOUT = 1000 * 60;private Document getDocumentByUrl(String url) throws Exception { return Jsoup.connect(url) .he
阅读全文
摘要://线程的数量private static final int UPD_NO_THREADS = 5;//线程池的容量private ExecutorService executorService = Executors.newFixedThreadPool(UPD_NO_THREADS);publ
阅读全文
摘要:java.util.regex.Pattern 模式类:用来表示一个编译过的正则表达式。 java.util.regex.Matcher 匹配类:用模式匹配一个字符串所表达的抽象结果。 二、先看一个简单的例子: 需求:从字符串:{"_type":"FQDN","_oid":"51a867e4773d
阅读全文
摘要:show databasesuse table asource sql文件路径,\ 变为 / 使用XAMPP 中的“Shell”,来启动cmd
阅读全文
摘要:在JS中设置节点的属性与属性值用到setAttribute(),获得节点的属性与属性值用到getAttribute(),而在jquery中,用一个attr()就可以全部搞定了,赞一个先 ^^ jquery中用attr()方法来获取和设置元素属性,attr是attribute(属性)的缩写,在jQue
阅读全文
摘要:Collections.sort(list, new Comparator<Student>() { @Override public int compare(Student o1, Student o2) { int result = 0; if (o1.getExta().equals("200
阅读全文