Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
GreyZeng committed Nov 22, 2022
1 parent 09029b2 commit 5c897c2
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 31 deletions.
6 changes: 4 additions & 2 deletions skeleton-gateway/src/main/resources/bootstrap.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,12 @@ spring:
cloud:
gateway:
routes:
- id: route_user_service
- id: sc-user-service
uri: ${test.uri} # uri以lb://开头(lb代表从注册中心获取服务),后面接的就是你需要转发到的服务名称
predicates:
- Path=/user/**
- Path=/${spring.cloud.gateway.routes[0].id}/**
filters:
- StripPrefix=1 # 表示在转发时去掉 all
test:
uri: lb://sc-user-service

Expand Down

This file was deleted.

This file was deleted.

0 comments on commit 5c897c2

Please sign in to comment.