Authored by chaogeng

fix

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