zuul网关改为gateway
This commit is contained in:
@@ -3,16 +3,17 @@ server:
|
||||
spring:
|
||||
application:
|
||||
name: mall-gateway
|
||||
cloud:
|
||||
gateway:
|
||||
discovery:
|
||||
locator:
|
||||
enabled: true
|
||||
lower-case-service-id: true #使用小写service-id
|
||||
eureka:
|
||||
client:
|
||||
register-with-eureka: true
|
||||
fetch-registry: true
|
||||
service-url:
|
||||
defaultZone: http://localhost:8001/eureka/
|
||||
registry-fetch-interval-seconds: 10
|
||||
zuul:
|
||||
sensitive-headers: #默认会过滤Cookie,Set-Cookie,Authorization,配置为空不过滤
|
||||
add-host-header: true #设置为true重定向是会添加host请求头
|
||||
management: #开启SpringBoot Admin的监控
|
||||
endpoints:
|
||||
web:
|
||||
@@ -21,3 +22,6 @@ management: #开启SpringBoot Admin的监控
|
||||
endpoint:
|
||||
health:
|
||||
show-details: always
|
||||
logging:
|
||||
level:
|
||||
org.springframework.cloud.gateway: debug
|
||||
|
||||
Reference in New Issue
Block a user