You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@servicecomb.apache.org by GitBox <gi...@apache.org> on 2019/01/25 07:02:08 UTC

[GitHub] kakulisen commented on a change in pull request #162: add ServiceComb & SpringCloud Zuul Demo

kakulisen commented on a change in pull request #162: add ServiceComb & SpringCloud Zuul Demo
URL: https://github.com/apache/servicecomb-website/pull/162#discussion_r250883028
 
 

 ##########
 File path: _posts/cn/2019-01-22-servicecomb-springcloud-zuul-demo.md
 ##########
 @@ -0,0 +1,362 @@
+---
+title: "基于 ServiceComb 和 SpringCloud Zuul 快速构建微服务系统"
+lang: cn
+ref: servicecomb-springcloud-zuul-demo
+permalink: /cn/docs/servicecomb-springcloud-zuul-demo/
+excerpt: "基于 ServiceComb 和 SpringCloud Zuul 快速构建微服务系统"
+last_modified_at: 2019-01-22T17:18:43+08:00
+author: Lisen
+tags: [微服务, ServiceComb, SpringCloud Zuul]
+redirect_from:
+  - /theme-setup/
+---
+
+基于ServiceComb和Zuul实现微服务网关,如此一来用户只需要专注实现其业务需求。
+
+### 场景
+本文将以一个简单的Hello服务演示网关的使用。Hello微服务提供一个hello/{name}接口,只要传递路径参数name就可以返回打招呼内容。接口返回结果通过网关将在浏览器界面显示
+
+![在这里插入图片描述](https://img-blog.csdnimg.cn/20190122155908145.png?x-oss-process=image/watermark,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L2tha3Vscw==,size_16,color_FFFFFF,t_70)
+
+### 技术准备
+[ServiceComb](http://servicecomb.apache.org/cn/docs/quick-start/) 作为后端微服务核心框架   
+[ServiceCenter](https://github.com/apache/servicecomb-service-center) 作为服务发现与注册中心  
+[SpringCloud Zuul](https://cloud.spring.io/spring-cloud-netflix/multi/multi__router_and_filter_zuul.html) 组件做服务网关
+
+
+### 环境准备
+以下环境为Windows 64位系统
+* 安装git,详情可参考[git安装教程](https://git-scm.com/book/zh/v2/%E8%B5%B7%E6%AD%A5-%E5%AE%89%E8%A3%85-Git)
+
+* 安装JDK 1.8,详情可参考[JDK安装教程](https://docs.oracle.com/javase/8/docs/technotes/guides/install/install_overview.html)。
+
+* 安装Maven 3.x,详情可参考[Maven安装教程](https://maven.apache.org/install.html)
+
+ServiceCenter安装  
+下载地址:http://mirrors.hust.edu.cn/apache/servicecomb/servicecomb-service-center/1.1.0/apache-servicecomb-service-center-1.1.0-windows-amd64.tar.gz
+下载后解压如下
+![在这里插入图片描述](https://img-blog.csdnimg.cn/20190116151218442.png?x-oss-process=image/watermark,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L2tha3Vscw==,size_16,color_FFFFFF,t_70)
 
 Review comment:
   图片已全部整改为使用本地链接

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services