diff --git a/gulimall-gateway/src/main/resources/application.yml b/gulimall-gateway/src/main/resources/application.yml index d67cd34878959e77feb1462886be6e0b0e47326e..3c048b2d53d87a0386294b328ee1033cddf6ea9c 100644 --- a/gulimall-gateway/src/main/resources/application.yml +++ b/gulimall-gateway/src/main/resources/application.yml @@ -24,6 +24,13 @@ spring: - Path=/api/product/** filters: - RewritePath=/api/(?.*),/$\{segment} + ## 库存路由 + - id: ware_route + uri: lb://gulimall-ware + predicates: + - Path=/api/ware/** + filters: + - RewritePath=/api/(?.*),/$\{segment} - id: coupon_route uri: lb://gulimall-coupon