From b535af3ab44f82e77b55abf73cb35ab0da4a7033 Mon Sep 17 00:00:00 2001 From: Michael Yan Date: Mon, 23 Dec 2024 16:29:39 +0800 Subject: [PATCH] Remove bean `transactionManager` from `DataSource` plugin Closes gh-816 --- .../plugins/datasource/DataSourcePluginConfiguration.java | 7 ------- 1 file changed, 7 deletions(-) diff --git a/grace-plugin-datasource/src/main/groovy/org/grails/plugins/datasource/DataSourcePluginConfiguration.java b/grace-plugin-datasource/src/main/groovy/org/grails/plugins/datasource/DataSourcePluginConfiguration.java index 75f7ec41d8..979f8e16a0 100644 --- a/grace-plugin-datasource/src/main/groovy/org/grails/plugins/datasource/DataSourcePluginConfiguration.java +++ b/grace-plugin-datasource/src/main/groovy/org/grails/plugins/datasource/DataSourcePluginConfiguration.java @@ -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; @@ -75,12 +74,6 @@ public DataSource dataSource(ConnectionSources d return dataSourceConnectionSources.getDefaultConnectionSource().getSource(); } - @Bean - @ConditionalOnMissingBean - public DataSourceTransactionManager transactionManager(DataSource dataSource) { - return new DataSourceTransactionManager(dataSource); - } - @Bean @ConditionalOnMissingBean public EmbeddedDatabaseShutdownHook embeddedDatabaseShutdownHook() {