修改网关配置
This commit is contained in:
@ -36,6 +36,9 @@ public class CustomRouteConfig {
|
||||
.route("sczx-order", r -> r.path("/zc/order/**")
|
||||
.filters(f -> f.rewritePath("/zc/order/(?<segment>.*)", "/${segment}"))
|
||||
.uri(uriWithCustomLoadBalance("sczx-order")))
|
||||
.route("sczx-sync", r -> r.path("/zc/sync/**")
|
||||
.filters(f -> f.rewritePath("/zc/sync/(?<segment>.*)", "/${segment}"))
|
||||
.uri(uriWithCustomLoadBalance("sczx-sync")))
|
||||
.build();
|
||||
// .route("sczx_user", r -> r.path("/zc/user/**")
|
||||
// .uri("lb://sczx_user"))
|
||||
|
||||
@ -36,8 +36,11 @@ public class AuthGlobalFilter implements GlobalFilter, Ordered {
|
||||
//首页查询门店
|
||||
"/zc/store/client/listStoresByBBoxWithDistance",
|
||||
"/zc/store/oss/**",
|
||||
"/zc/store/pub/**",
|
||||
//查询车型
|
||||
"/zc/car/carModel/pageStoreCarModel",
|
||||
//同步服务都放行
|
||||
"/zc/sync/**",
|
||||
|
||||
|
||||
// Swagger 放行
|
||||
|
||||
Reference in New Issue
Block a user