Skip to content

Commit

Permalink
Set the default value of testWhileIdle to false to prevent Error Log
Browse files Browse the repository at this point in the history
  • Loading branch information
linghengqian committed Sep 11, 2024
1 parent a1536b8 commit c392dbe
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ public abstract class DruidAbstractDataSource extends WrapperAdapter implements
public static final String DEFAULT_VALIDATION_QUERY = null; //
public static final boolean DEFAULT_TEST_ON_BORROW = false;
public static final boolean DEFAULT_TEST_ON_RETURN = false;
public static final boolean DEFAULT_WHILE_IDLE = true;
public static final boolean DEFAULT_WHILE_IDLE = false;
public static final long DEFAULT_TIME_BETWEEN_EVICTION_RUNS_MILLIS = 60 * 1000L;
public static final long DEFAULT_TIME_BETWEEN_CONNECT_ERROR_MILLIS = 500;
public static final int DEFAULT_NUM_TESTS_PER_EVICTION_RUN = 3;
Expand Down

0 comments on commit c392dbe

Please sign in to comment.