sofastack / sofa-serverless

a framework to enabe app architecture evolve from monolithic to microservices smoothly by involving modular and macroservices architecture.
https://sofaserverless.gitee.io/home/
Apache License 2.0
115 stars 41 forks source link

Invalid bean definition with name 'dubboConfigConfiguration.Single' defined in null: Cannot register bean definition appears when loading biz module in samples/dubbo-samples/rpc/dubbo26 #466

Closed ToviHe closed 8 months ago

ToviHe commented 8 months ago

Describe the question or bug

When running the dubbo26 sample program, it was found that the Invalid bean definition with name 'dubboConfigConfiguration.Single' defined in null: Cannot register bean definition error occurred during the installBiz stage. It looks like the spring.main.allow-bean-definition-overriding=true configuration has been added in dubbo26base and the two biz modules are missing. See https://github.com/apache/dubbo-spring-boot-project/issues/476 and https://github.com/apache/dubbo/issues/3193

Expected behavior

successfully installed biz

Actual behavior

Invalid bean definition with name 'dubboConfigConfiguration.Single' defined in null: Cannot register bean definition

Steps to reproduce

Steps to reproduce the problem:

1.cd samples/dubbo-samples/rpc/dubbo26/dubbo26model mvn clean install

2.cd ../ mvn clean package

  1. Start Dubbo26BaseApplication.java

  2. Invalid bean definition with name 'dubboConfigConfiguration.Single' defined in null: Cannot register bean definition appears when installing biz module

Screenshots

image

Minimal yet complete reproducer code (or GitHub URL to code)

Environment