@ -30,12 +30,11 @@ import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration ;
import org.springframework.core.Ordered ;
import org.springframework.jdbc.core.JdbcTemplate ;
import org.springframework.jdbc. datasource.DataSource TransactionManager;
import org.springframework.jdbc. support.Jdbc TransactionManager;
import org.springframework.transaction.TransactionManager ;
/ * *
* { @link EnableAutoConfiguration Auto - configuration } for
* { @link DataSourceTransactionManager } .
* { @link EnableAutoConfiguration Auto - configuration } for { @link JdbcTransactionManager } .
*
* @author Dave Syer
* @author Stephane Nicoll
@ -55,9 +54,9 @@ public class DataSourceTransactionManagerAutoConfiguration {
@Bean
@ConditionalOnMissingBean ( TransactionManager . class )
DataSource TransactionManager transactionManager ( DataSource dataSource ,
Jdbc TransactionManager transactionManager ( DataSource dataSource ,
ObjectProvider < TransactionManagerCustomizers > transactionManagerCustomizers ) {
DataSourceTransactionManager transactionManager = new DataSource TransactionManager( dataSource ) ;
JdbcTransactionManager transactionManager = new Jdbc TransactionManager( dataSource ) ;
transactionManagerCustomizers . ifAvailable ( ( customizers ) - > customizers . customize ( transactionManager ) ) ;
return transactionManager ;
}