Commit 31419c63 by admin

修改服务部分

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