apache / dubbo

The java implementation of Apache Dubbo. An RPC and microservice framework.
https://dubbo.apache.org/
Apache License 2.0
40.39k stars 26.41k forks source link

[Bug] A bean with that name has already been defined and overriding is disabled #14617

Closed he-jialin closed 1 week ago

he-jialin commented 2 weeks ago

Pre-check

Search before asking

Apache Dubbo Component

Java SDK (apache/dubbo)

Dubbo Version

Dubbo Java 3.2.15, JDK17, dubbo-spring-boot-observability-starter:3.2.15

Steps to reproduce this issue

Problems may arise when using two dependency packages at the same time,when tracing mode is turned on, a bug will appear. dubbo.tracing.enabled=true implementation("org.apache.dubbo:dubbo-spring-boot-observability-starter:3.2.15") implementation("org.springframework.boot:spring-boot-actuator-autoconfigure:${springBootVersion}")

spring.main.allow-bean-definition-overriding=true

If the configuration supports bean override injection, no error will be reported.

What you expected to happen

I hope that the application can be started normally without additional configuration

Anything else

No response

Are you willing to submit a pull request to fix on your own?

Code of Conduct

wcy666103 commented 2 weeks ago

You can submit a pr to try and fix this.

he-jialin commented 1 week ago

14631