Spring Cloud GateWay构建Route的应用

Spring Cloud GateWay构建Route的应用 1.使用Java API方式构建路由 1)添加依赖配置 2)配置路由规则 通过RouteLocatorBuilder接口来构建路由规则,此处使用的是指定的Path来构建路由 3)验证路由 启动项目,浏览器访问http://localhost:8080/shenzhen/a,会进入https://www.jd.com/ 之后可以在项目控制
相关文章
相关标签/搜索