Skip to content

Conflicting transactionInterceptor bean when using Spring Boot 3.0.2 and Couchbase Starter #1665

Closed
@cjp421

Description

@cjp421

Originally created spring-projects/spring-boot#34209 but was instructed to create a new issue here.

Receiving the following error when using Spring Boot 3.0.2 and spring-boot-starter-data-couchbase:

The bean 'transactionInterceptor', defined in class path resource [org/springframework/transaction/annotation/ProxyTransactionManagementConfiguration.class], could not be registered. A bean with that name has already been defined in class path resource [com/example/demo/CouchbaseConfig.class] and overriding is disabled.

To recreate:

  1. go to start.spring.io and create a new Spring Boot 3.0.2 project with the couchbase starter dependency
  2. Create a configuration class extending AbstractCouchbaseConfiguration
public CouchbaseConfig extends AbstractCouchbaseConfiguration {
    // override required methods
}

3, Try and start the application ./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

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions