Merge pull request #187 from lcxw/main

fix: 与spring-data-jpa混用时候,提醒`No bean named 'transactionManager' avail…
This commit is contained in:
Michael Yang 2023-10-17 11:22:39 +08:00 committed by GitHub
commit 177129579e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -46,7 +46,7 @@ public class FlexTransactionAutoConfiguration implements TransactionManagementCo
*/
private final FlexTransactionManager flexTransactionManager = new FlexTransactionManager();
@Bean
@Bean(name = "transactionManager")
@Override
public PlatformTransactionManager annotationDrivenTransactionManager() {
return flexTransactionManager;