本文主要是介绍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.classIt was loaded from the following location:file:/D:/repository/com/alibaba/spring/spring-context-support/1.0.8/spring-context-support-1.0.8.jarAction:Correct the classpath of your application so that it contains a single, compatible version of com.alibaba.spring.util.BeanUtilsDisconnected 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 2.7.3版本直连问题的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!