mirror of
https://github.com/spring-projects/spring-boot.git
synced 2024-08-29 03:06:45 +08:00
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
This commit is contained in:
parent
4352707eb3
commit
47fb614bde
@ -65,7 +65,7 @@ public class DataSourceTransactionManagerAutoConfiguration {
|
||||
|
||||
@ConditionalOnMissingBean(AbstractTransactionManagementConfiguration.class)
|
||||
@Configuration
|
||||
@EnableTransactionManagement
|
||||
@EnableTransactionManagement(proxyTargetClass = true)
|
||||
protected static class TransactionManagementConfiguration {
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user