解决org.apache.zookeeper.KeeperException$UnimplementedException:KeeperErrorCode = Unimplemented for /S

解决org.apache.zookeeper.KeeperException$UnimplementedException:KeeperErrorCode = Unimplemented for /S_第1张图片

主要原因是SpringCloud hoxton整合Zookerper3.5.3-beta作为注册中心的时候,与服务器版本不一致导致的,解决办法:
这是我的Maven依赖:


        org.springframework.cloud
        spring-cloud-starter-zookeeper-discovery
 

只需把Maven依赖改为:

	
        org.springframework.cloud
        spring-cloud-starter-zookeeper-discovery
		
			org.apache.zookeeper
			zookeeper
		
    
	
        org.apache.zookeeper
        zookeeper
		x.x.x
    

注意:

x.x.x是你服务器里面搭建Zookeeper的版本号。

你可能感兴趣的:(JavaEE,SpringCloud,Java)