Authored by chaogeng

fix

... ... @@ -23,7 +23,8 @@ public class SynNowDataTask {
@Autowired
private YohoNowDataSynService yohoNowDataSynService;
@Scheduled(cron = "0 0 2 * * ? ")
//@Scheduled(cron = "0 0 2 * * ? ")
@Scheduled(cron = "0 0/10 * * * ? ")
public void reportCurrentByCron(){
logger.info("enter SynNowDataScheduler.....");
boolean isStop = yohoNowDataSynService.getStop();
... ...
... ... @@ -88,12 +88,11 @@ public class DataSourceConfig {
/*
* 定期检测连接是否有效
* 解决客户端长时间没有请求,连接被服务器断开的问题
*/
boolean testWhileIdle = true;
//解决客户端长时间没有请求,连接被服务器断开的问题
boolean testOnBorrow = true;
boolean testOnReturn = true;
boolean testOnBorrow = false;
boolean testOnReturn = false;
String validationQuery = "select 1";
//每10秒检查一次
... ...