增加定时更新数据功能

parent d8dc2e67
......@@ -30,8 +30,8 @@ public class SolrUpdateJobTask {
String url=solrurl+solrhomes[i];
System.out.println("更新实例地址============="+url+"/dataimport?command=delta-import&clean=false&commit=true");
String json = HttpClientUtil.doPost(url+"/dataimport?command=delta-import&clean=false&commit=true", param);
Xmldom4j.xmlStrCount(json);
//System.out.println("更新数据量===="+Xmldom4j.xmlStrCount(json));
//Xmldom4j.xmlStrCount(json);
System.out.println("更新数据量结果===="+json);
}
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment