Commit 47fb614b authored by Phillip Webb's avatar Phillip Webb

Set "proxy target class" for transaction managers

Update `@EnableTransactionManagement` so that `proxyTargetClass` is
set to true. This ensures that @Transactional beans that aren't
interface based can still be proxied.

Fixes gh-5423
parent 4352707e
......@@ -65,7 +65,7 @@ public class DataSourceTransactionManagerAutoConfiguration {
@ConditionalOnMissingBean(AbstractTransactionManagementConfiguration.class)
@Configuration
@EnableTransactionManagement
@EnableTransactionManagement(proxyTargetClass = true)
protected static class TransactionManagementConfiguration {
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment