Przeglądaj źródła

移除removeAbandoned相关配置
(由于下载数据的时间较长,并且耗费时间不固定,配置removeAbandoned属性会导致数据源正在使用时就被强制关闭,导致下载出错)

sunyj 9 lat temu
rodzic
commit
f6e91a21d5

+ 0 - 12
search-console-b2b/src/main/java/com/uas/search/console/b2b/DruidDBConfiguration.java

@@ -64,15 +64,6 @@ public class DruidDBConfiguration {
 	@Value("${spring.datasource.testOnReturn}")
 	private boolean testOnReturn;
 
-	@Value("${spring.datasource.removeAbandoned}")
-	private boolean removeAbandoned;
-
-	@Value("${spring.datasource.removeAbandonedTimeout}")
-	private int removeAbandonedTimeout;
-
-	@Value("${spring.datasource.logAbandoned}")
-	private boolean logAbandoned;
-
 	@Value("${spring.datasource.timeBetweenLogStatsMillis}")
 	private int timeBetweenLogStatsMillis;
 
@@ -109,9 +100,6 @@ public class DruidDBConfiguration {
 		dataSource.setTestWhileIdle(testWhileIdle);
 		dataSource.setTestOnBorrow(testOnBorrow);
 		dataSource.setTestOnReturn(testOnReturn);
-		dataSource.setRemoveAbandoned(removeAbandoned);
-		dataSource.setRemoveAbandonedTimeout(removeAbandonedTimeout);
-		dataSource.setLogAbandoned(logAbandoned);
 		dataSource.setTimeBetweenLogStatsMillis(timeBetweenLogStatsMillis);
 		dataSource.setPoolPreparedStatements(poolPreparedStatements);
 		dataSource.setMaxPoolPreparedStatementPerConnectionSize(maxPoolPreparedStatementPerConnectionSize);

+ 0 - 12
search-console/src/main/java/com/uas/search/console/DruidDBConfiguration.java

@@ -64,15 +64,6 @@ public class DruidDBConfiguration {
 	@Value("${spring.datasource.testOnReturn}")
 	private boolean testOnReturn;
 
-	@Value("${spring.datasource.removeAbandoned}")
-	private boolean removeAbandoned;
-
-	@Value("${spring.datasource.removeAbandonedTimeout}")
-	private int removeAbandonedTimeout;
-
-	@Value("${spring.datasource.logAbandoned}")
-	private boolean logAbandoned;
-
 	@Value("${spring.datasource.timeBetweenLogStatsMillis}")
 	private int timeBetweenLogStatsMillis;
 
@@ -109,9 +100,6 @@ public class DruidDBConfiguration {
 		dataSource.setTestWhileIdle(testWhileIdle);
 		dataSource.setTestOnBorrow(testOnBorrow);
 		dataSource.setTestOnReturn(testOnReturn);
-		dataSource.setRemoveAbandoned(removeAbandoned);
-		dataSource.setRemoveAbandonedTimeout(removeAbandonedTimeout);
-		dataSource.setLogAbandoned(logAbandoned);
 		dataSource.setTimeBetweenLogStatsMillis(timeBetweenLogStatsMillis);
 		dataSource.setPoolPreparedStatements(poolPreparedStatements);
 		dataSource.setMaxPoolPreparedStatementPerConnectionSize(maxPoolPreparedStatementPerConnectionSize);