-
Notifications
You must be signed in to change notification settings - Fork 41.2k
Conflicting transactionInterceptor
bean when using Spring Boot 3.0.2 and Couchbase Starter
#34209
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Thanks for the report. This should be addressed in Spring Data Couchbase so that it does not define a bean whose name clashes with a bean defined by Spring Framework. They should perhaps be using a bean post-processor to customize the interceptor that Framework already defines. Please open a Spring Data Couchbase issue. |
@wilkinsona - if I used a different name for the bean, how would I get transactionAdvisor() in ProxyTransactionManagementConfiguration to use that bean? |
I don't think you should rename your bean. Instead, I think you should remove your definition of the |
transactionAdvisor is a bean that the Framework defines. I'm customizing it by extending the class. I did ask for guidance on this issue - I received no response. I will try again. |
I've added a comment to the SDC issue that will hopefully make what I am suggesting more clear. |
Receiving the following error when using Spring Boot 3.0.2 and
spring-boot-starter-data-couchbase
:To recreate:
AbstractCouchbaseConfiguration
./gradlew bootRun
Is there something I'm missing with Spring Boot 3.0.2 and Couchbase starter?
https://github.com/spring-projects/spring-data-couchbase/blob/main/src/main/java/org/springframework/data/couchbase/config/AbstractCouchbaseConfiguration.java#L377-L388
https://github.com/spring-projects/spring-framework/blob/main/spring-tx/src/main/java/org/springframework/transaction/annotation/ProxyTransactionManagementConfiguration.java#L65-L74
The text was updated successfully, but these errors were encountered: