@Component(value="dbcpEnv")
public class DBCPConfig
extends java.lang.Object
| Constructor and Description |
|---|
DBCPConfig(boolean testOnBorrow,
java.lang.String validationQuery,
int maxTotal,
long minEvictableIdleTime,
long timeBetweenEvictionRuns,
int numTestsPerEvictionRun,
boolean testWhileIdle,
boolean testOnReturn) |
@Autowired
public DBCPConfig(@Value(value="${dbcp.db.test.on.borrow:true}")
boolean testOnBorrow,
@Value(value="${dbcp.db.validation.query:SELECT 1}")
java.lang.String validationQuery,
@Value(value="${dbcp.db.max.total:-1}")
int maxTotal,
@Value(value="${dbcp.db.min.evictable.idle.time:1800000}")
long minEvictableIdleTime,
@Value(value="${dbcp.db.time.between.eviction.runs:1800000}")
long timeBetweenEvictionRuns,
@Value(value="${dbcp.db.num.tests.per.eviction.run:3}")
int numTestsPerEvictionRun,
@Value(value="${dbcp.db.test.while.idle:true}")
boolean testWhileIdle,
@Value(value="${dbcp.db.test.on.return:true}")
boolean testOnReturn)