消费端需要引入的依赖
这是消费端的依赖,服务提供端的依赖与这个一致,dubbo的版本和spring-context-support一定要对应不然就会遇到我这种情况,真的裂开
<dependency>
<groupId>com.alibaba.cloud</groupId>
<artifactId>spring-cloud-starter-alibaba-nacos-discovery</artifactId>
<version>2.2.5.RELEASE</version>
</dependency>
<!--dubbo依赖版本-->
<dependency>
<groupId>org.apache.dubbo</groupId>
<artifactId>dubbo-spring-boot-starter</artifactId>
<version>2.7.7</version>
</dependency>
<!--这个依赖很必要不然就会报标题的错误-->
<dependency>
<groupId>com.alibaba.spring</groupId>
<artifactId>spring-context-support</artifactId>
<version>1.0.9</version>
</dependency>
<!--自己的公共Api依赖-->
<dependency>
<groupId>com.record</groupId>
<artifactId>record-public-api</artifactId>
</dependency>