Follow the steps below for version migration
When an interface is implemented and an incompatible upgrade occurs, the version number can be used for transition, and services with different version numbers do not refer to each other.
https://github.com/apache/dubbo-samples/tree/master/dubbo-samples-version
Old version service provider configuration
<dubbo:service interface="com.foo.BarService" version="1.0.0" />
New Version Service Provider Configuration
<dubbo:service interface="com.foo.BarService" version="2.0.0" />
Old version service consumer configuration
<dubbo:reference id="barService" interface="com.foo.BarService" version="1.0.0" />
New Version Service Consumer Configuration
<dubbo:reference id="barService" interface="com.foo.BarService" version="2.0.0" />
If you don’t need to distinguish between versions, you can configure it in the following way
<dubbo:reference id="barService" interface="com.foo.BarService" version="*" />