调整数据库连接方法
This commit is contained in:
parent
d4d125f471
commit
861f25f90d
|
@ -22,13 +22,7 @@ public class MyTask implements Runnable{
|
|||
@Override
|
||||
public void run() {
|
||||
EventLog.info("......任务调度开始执行......");
|
||||
String is = Jdbc.jdbc();
|
||||
if ("1".equals(is)) {
|
||||
EventLog.info("......数据库连接成功......");
|
||||
doStart();
|
||||
}else {
|
||||
EventLog.info("......数据库连接失败......");
|
||||
}
|
||||
doStart();
|
||||
EventLog.info("......任务调度结束执行......");
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue