就是我连接两个dao,但是因为时间天长了,可能下一个连接超时了,就是想问问有没有什么办法判断是否超时呢??
Dao oldDao1 = ConnectionLogic.connection(service,ds1);
Dao oldDao2 = ConnectionLogic.connection2(service,ds2);
2017-10-10 19:36:11,070 com.backend.Module.T1_PlayerInfoAnalyzeModule2.getPlayerBasicInfo(T1_PlayerInfoAnalyzeModule2.java:155) INFO - 读取数据库获取玩家基本信息的时间:2242606
2017-10-10 19:36:11,679 org.quartz.core.QuartzSchedulerThread.run(QuartzSchedulerThread.java:276) DEBUG - batch acquisition of 0 triggers
2017-10-10 19:36:30,177 org.nutz.dao.impl.jdbc.AbstractJdbcExpert.setupEntityField(AbstractJdbcExpert.java:102) DEBUG - Table 'ladder' doesn't exist!
2017-10-10 19:36:30,177 com.backend.Module.T1_PlayerInfoAnalyzeModule2.getPlayerBasicInfo(T1_PlayerInfoAnalyzeModule2.java:418) ERROR - java.lang.RuntimeException: java.sql.SQLException: Already closed.