Code example for TransactionAwareDataSourceProxy

Methods: setTargetDataSource

0
        return dataSourceTransactionManager; 
    } 
 
    @Bean 
    public TransactionAwareDataSourceProxy dataSourceProxy() { 
        TransactionAwareDataSourceProxy dataSourceProxy = new TransactionAwareDataSourceProxy(); 
        dataSourceProxy.setTargetDataSource(dataSource()); 
        return dataSourceProxy; 
    } 
 
    @Bean 
    public DataSourceConnectionProvider dataSourceConnectionProvider() { 
        return new DataSourceConnectionProvider(dataSourceProxy()); 
    } 
 
    @Bean 
    public DefaultDSLContext createDefaultDSLContext() { 
        return new DefaultDSLContext(dataSourceConnectionProvider(), SQLDialect.MYSQL); 
    } 
 
Contextual code suggestions in your IDE  Get Codota for Java