Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我看到重试过滤器支持基于 http 状态代码的重试。我想在连接重置等io异常的情况下配置重试。Spring Cloud Gateway 2 有可能吗?
我使用的是 2.0.0.RC1。看起来最新的构建快照支持基于异常的重试。为下一个版本祈祷。这是一个针对 500 系列错误或 IOExceptions 重试两次的示例:
filters: - name: Retry args: retries: 2 series: - SERVER_ERROR exceptions: - java.io.IOException