@Configuration public class TomcatDataSourceConfiguration extends AbstractDataSourceConfiguration
DataSourceAutoConfiguration
Constructor and Description |
---|
TomcatDataSourceConfiguration() |
Modifier and Type | Method and Description |
---|---|
void |
close() |
DataSource |
dataSource() |
void |
setJdbcInterceptors(String jdbcInterceptors) |
void |
setValidationInterval(long validationInterval) |
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()
public void setJdbcInterceptors(String jdbcInterceptors)
public void setValidationInterval(long validationInterval)
Copyright © 2014. All rights reserved.