Browse Source

去除连接数据库心跳打印

wangmh 7 years ago
parent
commit
40fa4517c6
1 changed files with 3 additions and 3 deletions
  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 {