parent
3a12a86ea2
commit
1ffb580d6f
|
|
@ -179,7 +179,7 @@ bom {
|
|||
]
|
||||
}
|
||||
}
|
||||
library("Commons DBCP2", "2.9.0") {
|
||||
library("Commons DBCP2", "2.10.0") {
|
||||
group("org.apache.commons") {
|
||||
modules = [
|
||||
"commons-dbcp2" {
|
||||
|
|
|
|||
|
|
@ -16,6 +16,8 @@
|
|||
|
||||
package org.springframework.boot.jdbc.metadata;
|
||||
|
||||
import java.time.Duration;
|
||||
|
||||
import org.apache.commons.dbcp2.BasicDataSource;
|
||||
import org.junit.jupiter.api.Test;
|
||||
|
||||
|
|
@ -83,7 +85,7 @@ class CommonsDbcp2DataSourcePoolMetadataTests
|
|||
BasicDataSource dataSource = createDataSource();
|
||||
dataSource.setMinIdle(minSize);
|
||||
dataSource.setMaxTotal(maxSize);
|
||||
dataSource.setMinEvictableIdleTimeMillis(5000);
|
||||
dataSource.setMinEvictableIdle(Duration.ofSeconds(5));
|
||||
return new CommonsDbcp2DataSourcePoolMetadata(dataSource);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue