server:port: 8080
spring:application:name: test-gatewaycloud:nacos:discovery:server-addr: localhost:8848gateway:discovery:locator:enabled: false#是否开启网关enabled: trueroutes:- id: test-order-route#目标微服务的请求地址和端口uri: lb://test-orderpredicates:- Path=/order/*
订单服务配置
server:port: 8081
spring:application:name: test-ordercloud:nacos:discovery:server-addr: localhost:8848
访问地址
http://127.0.0.1:8080/order/queryOrderList