SpringCloud之Rest微服务构建

SpringCloud之Rest微服务构建

 

需要具备的知识
1 springmvc+mybatis+mysql
2 Consumer消费者(Client)通过REST调用Provider提供者(Server)提供的服务
3 Maven的分包分模块:project下带三个子模块,microservicecloud-api:封装的整体entity/接口/公共配置等,microservicecloud-provider-dept-8001:微服务落地的服务提供者,microservicecloud-consumer-dept-80:微服务调用的客户端使用

构建
MicroServiceCloud父工程(Project)下初次带着3个子模块(Module):
microservicecloud-api:封装的整体entity/接口/公共配置等
microservicecloud-provider-dept-8001:微服务落地的服务提供者
microservicecloud-consumer-dept-80:微服务调用的客户端使用
前缀需要相同,因为约定大于配置

pom.xml:
spring-cloud-dependencies----------Dalston.SR1
spring-cloud-dependencies----------1.5.9.RELEASE