Просмотр исходного кода

去除连接数据库心跳打印

wangmh 7 лет назад
Родитель
Сommit
40fa4517c6
1 измененных файлов с 3 добавлено и 3 удалено
  1. 3 3
      sso-server/src/main/java/com/uas/sso/DruidDBConfiguration.java

+ 3 - 3
sso-server/src/main/java/com/uas/sso/DruidDBConfiguration.java

@@ -63,8 +63,8 @@ public class DruidDBConfiguration {
     @Value("${datasource.testOnReturn}")
     private boolean testOnReturn;
 
-    @Value("${datasource.timeBetweenLogStatsMillis}")
-    private int timeBetweenLogStatsMillis;
+//    @Value("${datasource.timeBetweenLogStatsMillis}")
+//    private int timeBetweenLogStatsMillis;
 
     @Value("${datasource.poolPreparedStatements}")
     private boolean poolPreparedStatements;
@@ -99,7 +99,7 @@ public class DruidDBConfiguration {
         dataSource.setTestWhileIdle(testWhileIdle);
         dataSource.setTestOnBorrow(testOnBorrow);
         dataSource.setTestOnReturn(testOnReturn);
-        dataSource.setTimeBetweenLogStatsMillis(timeBetweenLogStatsMillis);
+//        dataSource.setTimeBetweenLogStatsMillis(timeBetweenLogStatsMillis);
         dataSource.setPoolPreparedStatements(poolPreparedStatements);
         dataSource.setMaxPoolPreparedStatementPerConnectionSize(maxPoolPreparedStatementPerConnectionSize);
         try {