edit
This commit is contained in:
parent
16a4be6cd0
commit
7919746e55
@ -0,0 +1,19 @@
|
||||
server:
|
||||
port: 8080
|
||||
spring:
|
||||
application:
|
||||
name: gateway
|
||||
cloud:
|
||||
gateway:
|
||||
routes:
|
||||
- id: user-service
|
||||
uri: http://localhost:8083
|
||||
order: 0
|
||||
predicates:
|
||||
- Path=/test/**
|
||||
filters:
|
||||
# 关键在下面一句,值为true则开启认证,false则不开启
|
||||
# 这种配置方式和spring cloud gateway内置的GatewayFilterFactory一致,即AuthorizeGatewayFilterFactory去掉GatewayFilterFactory
|
||||
- Authorize=true
|
||||
- StripPrefix=1
|
||||
|
@ -0,0 +1,5 @@
|
||||
server:
|
||||
port: 8083
|
||||
spring:
|
||||
application:
|
||||
name: member-web
|
Loading…
Reference in New Issue
Block a user