SpringBoot + Dubbo + Zookeeper 搭建环境
Dubbo 2.7使用的Alibaba Dubbo,后来@Service等注解 被标识 @Deprecated。
现改用Dubbo 3.0.6,出现了一些版本匹配的问题。
可以使用的搭配:
SpringBoot 2.7.5 + Dubbo 3.0.6 + Zookeeper 3.5.5 + curator 4.2.0
版本与配置
<properties>
<java.version>1.8</java.version>
<dubbo.version>3.0.6</dubbo.version>
<curator.version>4.2.0</curator.version>
</properties>
<dependencies>
<dependency>
<groupId>org.apache.dubbo</groupId>
<artifactId>dubbo-bom</artifactId>
<version>${dubbo.version}</version>
<type>pom</type>
<scope>import</scope>
</dependency>
<dependency>
<groupId>org.apache.dubbo</groupId>
<artifactId>dubbo-spring-boot-starter</artifactId>
<version>${dubbo.version}</version>
<exclusions>
<exclusion>
<groupId>org.apache.dubbo</groupId>
<artifactId>dubbo-common</artifactId>
</exclusion>
<exclusion>
<groupId>org.apache.dubbo</groupId>
<artifactId>dubbo-remoting-api</artifactId>
</exclusion>
<exclusion>
<groupId>log4j</groupId>
<artifactId>log4j</artifactId>
</exclusion>
</exclusions>
</dependency>
<!-- curator-->
<dependency>
<groupId>org.apache.curator</groupId>
<artifactId>curator-framework</artifactId>
<version>${curator.version}</version>
</dependency>
<dependency>
<groupId>org.apache.curator</groupId>
<artifactId>curator-recipes</artifactId>
<version>${curator.version}</version>
</dependency>
<dependency>
<groupId>org.apache.curator</groupId>
<artifactId>curator-x-discovery</artifactId>
<version>${curator.version}</version>
</dependency>
</dependencies>
标签:Dubbo,SpringBoot,dubbo,Zookeeper,curator,version,apache,org
From: https://www.cnblogs.com/NetUSA/p/16891895.html