dubbo 2.7.3版本直连问题

使用2.7.3的版本会报找不到提供者错误

升级为其他高版本又会报下面的错误,

An attempt was made to call a method that does not exist. The attempt was made from the following location:

    com.alibaba.nacos.spring.beans.factory.annotation.AnnotationNacosInjectedBeanPostProcessor.initNacosServiceBeanBuilderMap(AnnotationNacosInjectedBeanPostProcessor.java:68)

The following method did not exist:

    com.alibaba.spring.util.BeanUtils.getBeanNames(Lorg/springframework/beans/factory/config/ConfigurableListableBeanFactory;Ljava/lang/Class;)[Ljava/lang/String;

The method's class, com.alibaba.spring.util.BeanUtils, is available from the following locations:

    jar:file:/D:/repository/com/alibaba/spring/spring-context-support/1.0.8/spring-context-support-1.0.8.jar!/com/alibaba/spring/util/BeanUtils.class

It was loaded from the following location:

    file:/D:/repository/com/alibaba/spring/spring-context-support/1.0.8/spring-context-support-1.0.8.jar


Action:

Correct the classpath of your application so that it contains a single, compatible version of com.alibaba.spring.util.BeanUtils

Disconnected from the target VM, address: '127.0.0.1:55199', transport: 'socket'

Process finished with exit code 1

最后调整为2.7.6的版本
但是要配置个spring.main.allow-bean-definition-overriding=true 才可以,否则又会报监听器错误,哎版本兼容问题真烦人呢

The bean 'dubboBootstrapApplicationListener' could not be registered. A bean with that name has already been defined and overriding is disabled.

Action:

Consider renaming one of the beans or enabling overriding by setting spring.main.allow-bean-definition-overriding=true

你可能感兴趣的:(dubbo)