@Configuration public class CommonsDataSourceConfiguration extends AbstractDataSourceConfiguration
DataSourceAutoConfiguration
Constructor and Description |
---|
CommonsDataSourceConfiguration() |
Modifier and Type | Method and Description |
---|---|
void |
close() |
DataSource |
dataSource() |
afterPropertiesSet, getDriverClassName, getInitialSize, getMaxActive, getMaxIdle, getMaxWaitMillis, getMinEvictableIdleTimeMillis, getMinIdle, getPassword, getTimeBetweenEvictionRunsMillis, getUrl, getUsername, getValidationQuery, isTestOnBorrow, isTestOnReturn, isTestWhileIdle, setBeanClassLoader, setDriverClassName, setInitialSize, setMaxActive, setMaxIdle, setMaxWait, setMinEvictableIdleTimeMillis, setMinIdle, setPassword, setTestOnBorrow, setTestOnReturn, setTestWhileIdle, setTimeBetweenEvictionRunsMillis, setUrl, setUsername, setValidationQuery
@Bean(destroyMethod="close") public DataSource dataSource()
@PreDestroy public void close()
Copyright © 2014 Pivotal Software, Inc.. All rights reserved.