gpt4 book ai didi

java - 带有 Zuul 的 Spring Boot 2.4.2 网关 API

转载 作者:行者123 更新时间:2023-12-04 00:13:36 26 4
gpt4 key购买 nike

我正在尝试使用新的 Spring Boot Starter Parent 2.4.2 构建网关 API,但由于某种原因,spring-cloud-starter-netflix-zuul 似乎不再受支持,并且不适用于新版本!有替代品吗?

最佳答案

来自 Spring blog :

Zuul 1 and Archaius 1 have both been superseded by later versions that are not backward compatible.

The following Spring Cloud Netflix modules and corresponding starters will be placed into maintenance mode:

spring-cloud-netflix-archaius
spring-cloud-netflix-hystrix-contract
spring-cloud-netflix-hystrix-dashboard
spring-cloud-netflix-hystrix-stream
spring-cloud-netflix-hystrix
spring-cloud-netflix-ribbon
spring-cloud-netflix-turbine-stream
spring-cloud-netflix-turbine
spring-cloud-netflix-zuul

Replacements

We recommend the following as replacements for the functionality provided by these modules.

Current                         Replacement
Hystrix Resilience4j
Hystrix Dashboard / Turbine Micrometer + Monitoring System
Ribbon Spring Cloud Loadbalancer
Zuul 1 Spring Cloud Gateway
Archaius 1 Spring Boot external config + Spring Cloud Config
所以你需要迁移到 Spring Cloud Gateway。

关于java - 带有 Zuul 的 Spring Boot 2.4.2 网关 API,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/65924096/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com