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/08/27 08:32:17 UTC

[GitHub] [servicecomb-java-chassis] yhs0092 commented on issue #1308: 如何搭建一个属于自己项目的edge网管,必要配置有哪些?路由规则在哪里定义?希望大神能给一个最简单的网关例子最好有详细步骤和注释!

yhs0092 commented on issue #1308: 如何搭建一个属于自己项目的edge网管,必要配置有哪些?路由规则在哪里定义?希望大神能给一个最简单的网关例子最好有详细步骤和注释!
URL: https://github.com/apache/servicecomb-java-chassis/issues/1308#issuecomment-525199361
 
 
   EdgeService网关的开发方式与普通微服务基本一致,不同点主要是:
   - pom文件中需要引入edge-core依赖包
   - microservice.yaml配置文件里增加请求转发规则的配置,具体配置内容取决于你使用的是`DefaultEdgeDispatcher`还是`URLMappedEdgeDispatcher`做转发
   
   可以参考这里的[微服务培训课程](https://education.huaweicloud.com:8443/courses/course-v1:HuaweiX+CBUCNXP012+Self-paced/courseware/da725ede26794694a621b8088a858743/f840404cbae3467baf17b3ab8452ca53/)看看,demo工程压缩包可以在页面上下载到。你也可以从[这里](https://gitee.com/yhs0092/demo-training21days-publish/commits/day6_homework) clone 到全部demo工程源码。

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to 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