📄 targetthread.java
字号:
package com.unimas.dbsync.output;
import com.unimas.dbsync.output.ReadFile;
import com.unimas.dbsync.entity.Recordbean;
import com.unimas.dbsync.output.InsertRecordsToDb;
/**
* Created by IntelliJ IDEA.
* User: Administrator
* Date: 2008-12-10
* Time: 14:49:05
*/
/**
* 目标端线程
*/
public class TargetThread extends Thread {
public void run() {
while (true) {
try {
Recordbean rb = new Recordbean();
ReadFile FR = new ReadFile();
InsertRecordsToDb OI = new InsertRecordsToDb();
OI.outInf(rb,FR);
Thread.sleep(60 * 1000);
} catch (InterruptedException e) {
System.out.println("目标端线程启动不正常");
}
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -