Commit 31419c63 by admin

修改服务部分

parent 07653b40
...@@ -8,6 +8,7 @@ import java.util.List; ...@@ -8,6 +8,7 @@ import java.util.List;
import org.apache.commons.logging.Log; import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory; import org.apache.commons.logging.LogFactory;
import org.bson.Document; import org.bson.Document;
import org.springframework.stereotype.Component;
import com.zhiwei.util.Config; import com.zhiwei.util.Config;
import com.zhiwei.util.ExcelUtil; import com.zhiwei.util.ExcelUtil;
...@@ -17,7 +18,7 @@ import com.zw.entity.NewsResult; ...@@ -17,7 +18,7 @@ import com.zw.entity.NewsResult;
import sendmail.SendMailUtil; import sendmail.SendMailUtil;
//@Component @Component
public class PushFinanceByTime extends Thread { public class PushFinanceByTime extends Thread {
private static final Log log = LogFactory.getLog(PushFinanceByTime.class); private static final Log log = LogFactory.getLog(PushFinanceByTime.class);
......
...@@ -10,7 +10,7 @@ import java.net.Socket; ...@@ -10,7 +10,7 @@ import java.net.Socket;
import org.springframework.stereotype.Component; import org.springframework.stereotype.Component;
@Component @Component
public class ServerClient extends Thread { public class ServerClient {
public static boolean needSend = false; public static boolean needSend = false;
...@@ -22,8 +22,7 @@ public class ServerClient extends Thread { ...@@ -22,8 +22,7 @@ public class ServerClient extends Thread {
new ServerClient(); new ServerClient();
} }
@Override public void start() {
public void run() {
ServerSocket server = null; ServerSocket server = null;
try { try {
server = new ServerSocket(22222); server = new ServerSocket(22222);
...@@ -49,14 +48,14 @@ public class ServerClient extends Thread { ...@@ -49,14 +48,14 @@ public class ServerClient extends Thread {
System.out.println("继续接收"); System.out.println("继续接收");
} }
line = in.readLine(); line = in.readLine();
if (line != null) { // if (line != null) {
System.out.println("接收到:" + line); // System.out.println("接收到:" + line);
try { // try {
sleep(1000 * 60); // Thread.sleep(1000 * 60);
} catch (InterruptedException e) { // } catch (InterruptedException e) {
e.printStackTrace(); // e.printStackTrace();
} // }
} // }
if (line != null && line.equals("asdasd")) { if (line != null && line.equals("asdasd")) {
break; break;
} }
......
basefile=/home/nbzhiwei/upload/ #basefile=/home/nbzhiwei/upload/
#basefile=C:/Users/admin/Desktop/ basefile=C:/Users/admin/Desktop/
timefileUrl=/home/nbzhiwei/upload/ #timefileUrl=/home/nbzhiwei/upload/
#timefileUrl=C:/Users/admin/Desktop/ timefileUrl=C:/Users/admin/Desktop/
#host=106.14.249.240 #host=106.14.249.240
#port=26807 #port=26807
#password=1q2w3e4r #password=1q2w3e4r
...@@ -22,7 +22,7 @@ indexName.wechat=mediaspider* ...@@ -22,7 +22,7 @@ indexName.wechat=mediaspider*
indexName.weibo=network* indexName.weibo=network*
type=media type=media
openid=oTc_rssM56GjwdRgwTD2dfQMq4Rg openid=oTc_rssM56GjwdRgwTD2dfQMq4Rg
pushMail=949131080@qq.com,yuhualong@zhiweidata.com,ligaodie@zhiweidata.com,shenqiao@zhiweidata.com,chenxi@zhiweidata.com pushMail=949131080@qq.com,yuhualong@zhiweidata.com,ligaodie@zhiweidata.com,shenqiao@zhiweidata.com,chenxi@zhiweidata.com,yexin@zhiweidata.com
#,oTc_rsju0ZJsEnzFX3WRgZihNWpc,oTc_rsme_NjN1tVh3GSHLdHtq1o8 #,oTc_rsju0ZJsEnzFX3WRgZihNWpc,oTc_rsme_NjN1tVh3GSHLdHtq1o8
######################################## ########################################
##wechat zan点赞阅读 ##wechat zan点赞阅读
......
basefile=/home/nbzhiwei/upload/ #basefile=/home/nbzhiwei/upload/
#basefile=C:/Users/admin/Desktop/ basefile=C:/Users/admin/Desktop/
timefileUrl=/home/nbzhiwei/upload/ #timefileUrl=/home/nbzhiwei/upload/
#timefileUrl=C:/Users/admin/Desktop/ timefileUrl=C:/Users/admin/Desktop/
#host=106.14.249.240 #host=106.14.249.240
#port=26807 #port=26807
#password=1q2w3e4r #password=1q2w3e4r
...@@ -22,7 +22,7 @@ indexName.wechat=mediaspider* ...@@ -22,7 +22,7 @@ indexName.wechat=mediaspider*
indexName.weibo=network* indexName.weibo=network*
type=media type=media
openid=oTc_rssM56GjwdRgwTD2dfQMq4Rg openid=oTc_rssM56GjwdRgwTD2dfQMq4Rg
pushMail=949131080@qq.com,yuhualong@zhiweidata.com,ligaodie@zhiweidata.com,shenqiao@zhiweidata.com,chenxi@zhiweidata.com pushMail=949131080@qq.com,yuhualong@zhiweidata.com,ligaodie@zhiweidata.com,shenqiao@zhiweidata.com,chenxi@zhiweidata.com,yexin@zhiweidata.com
#,oTc_rsju0ZJsEnzFX3WRgZihNWpc,oTc_rsme_NjN1tVh3GSHLdHtq1o8 #,oTc_rsju0ZJsEnzFX3WRgZihNWpc,oTc_rsme_NjN1tVh3GSHLdHtq1o8
######################################## ########################################
##wechat zan点赞阅读 ##wechat zan点赞阅读
......
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