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:
Phillip Webb 2016-03-15 15:44:44 -07:00
parent 4352707eb3
commit 47fb614bde

View File

@ -65,7 +65,7 @@ public class DataSourceTransactionManagerAutoConfiguration {
@ConditionalOnMissingBean(AbstractTransactionManagementConfiguration.class)
@Configuration
@EnableTransactionManagement
@EnableTransactionManagement(proxyTargetClass = true)
protected static class TransactionManagementConfiguration {
}