@ConditionalOnBean(value=javax.sql.DataSource.class) @Configuration public class JdbcAutoConfiguration extends Object
Constructor and Description |
---|
JdbcAutoConfiguration() |
Modifier and Type | Method and Description |
---|---|
ConnectionProvider |
connectionProvider(DataSource dataSource) |
PersistenceExceptionResolver |
dataSourcePersistenceExceptionResolver(DataSource dataSource) |
PersistenceExceptionResolver |
jdbcSQLErrorCodesResolver() |
@ConditionalOnMissingBean @ConditionalOnBean(value=javax.sql.DataSource.class) @Bean public PersistenceExceptionResolver dataSourcePersistenceExceptionResolver(DataSource dataSource) throws SQLException
SQLException
@ConditionalOnMissingBean(value={javax.sql.DataSource.class,PersistenceExceptionResolver.class}) @Bean public PersistenceExceptionResolver jdbcSQLErrorCodesResolver()
@ConditionalOnMissingBean @Bean public ConnectionProvider connectionProvider(DataSource dataSource)
Copyright © 2010–2017. All rights reserved.