Skip to content

Commit

Permalink
Remove bean transactionManager from DataSource plugin
Browse files Browse the repository at this point in the history
Closes gh-816
  • Loading branch information
rainboyan committed Dec 23, 2024
1 parent 47cdeb7 commit b535af3
Showing 1 changed file with 0 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@
import org.springframework.boot.autoconfigure.sql.init.SqlInitializationAutoConfiguration;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Conditional;
import org.springframework.jdbc.datasource.DataSourceTransactionManager;

import grails.config.Config;
import grails.core.GrailsApplication;
Expand Down Expand Up @@ -75,12 +74,6 @@ public DataSource dataSource(ConnectionSources<DataSource, DataSourceSettings> d
return dataSourceConnectionSources.getDefaultConnectionSource().getSource();
}

@Bean
@ConditionalOnMissingBean
public DataSourceTransactionManager transactionManager(DataSource dataSource) {
return new DataSourceTransactionManager(dataSource);
}

@Bean
@ConditionalOnMissingBean
public EmbeddedDatabaseShutdownHook embeddedDatabaseShutdownHook() {
Expand Down

0 comments on commit b535af3

Please sign in to comment.