赞
踩
1)搭建环境
以maven多模块化的方法搭建
2)服务提供者=提供服务
3)服务消费者-调用服务
引入管理依赖
springboot与springcloud版本要一致不然不兼容
<!-- 1.管理SpringBoot的jar包 --> <parent> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-parent</artifactId> <version>2.0.5.RELEASE</version> </parent> <!-- 2.管理SpringCloud的jar包 --> <dependencyManagement> <dependencies> <dependency> <groupId>org.springframework.cloud</groupId>
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。