dubbo集成zipkin官网博客地址
遇到的问题
运行官网的demo报错zookeeper not connected
,链接不上zookeeper,开始以为是zookeeper的版本和项目依赖的版本不一致,改了几个版本之后还是不行,然后在本机启动了一个zookeeper,使用127.0.0.1:2181来链接,发现可以链接成功(demo和zookeeper运行在一起的时候链接挺快的,没啥问题),检查了zookeeper的地址确实没错。
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'helloService': FactoryBean threw exception on object creation; nested exception is java.lang.IllegalStateException: zookeeper not connected
at org.springframework.beans.factory.support.FactoryBeanRegistrySupport.doGetObjectFromFactoryBean(FactoryBeanRegistrySupport.java:177)
at org.springframework.beans.factory.support.FactoryBeanRegistrySupport.getObjectFromFactoryBean(FactoryBeanRegistrySupport.java:103)
at org.springframework.beans.factory.support.AbstractBeanFactory.getObjectForBeanInstance(AbstractBeanFactory.java:1640)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:323)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFa