zuul添加重试机制和解决Forwarding error
正文
A服务重启,zuul不添加重试机制,会报A服务错误异常
修改网关配置文件
hystrix:
command:
default:
execution:
isolation:
thread:
timeout-in-milliseconds: 20000
zuul:
host:
connect-timeout-millis: 20000
socket-timeout-millis: 20000
routes:
#user微服务
userService:
#以/user为头部的请求都转发到user里
path: /user/**
serviceId: user
共有 0 条评论