Route以微服务名-动态获取服务URI
痛点:路由url写死问题。
是什么
修改 9527 yml中的url
测试
如果将8001微服务ym1文件端口修改为8007,照样访问我实际启动的程序是main8001但是端口名改为8007。
http://localhost/orderGateway/get/1
http://localhost/orderGateway/info
成功访问。
Route以微服务名-动态获取服务URI
痛点:路由url写死问题。
如果将8001微服务ym1文件端口修改为8007,照样访问我实际启动的程序是main8001但是端口名改为8007。
http://localhost/orderGateway/get/1
http://localhost/orderGateway/info
成功访问。