跳到主要内容
版本:5.0.1

Spring Cloud Gateway

DeepSeek V3 中英对照 Introduction Spring Cloud Gateway

该项目提供了一个基于 Spring 生态系统构建的 API 网关,包括:Spring Framework 7、Spring Boot 4 和 Project Reactor。Spring Cloud Gateway 旨在提供一种简单而有效的方式来路由到 API,并为它们提供横切关注点,例如:安全性、监控/指标和弹性。

Spring Cloud Gateway 有两种不同的风格:Server 和 Proxy Exchange。每种风格都提供 WebFlux 和 Web MVC 兼容性。

  • Server 变体是一个功能齐全的 API 网关,既可以独立运行,也可以嵌入到 Spring Boot 应用程序中。

  • Proxy Exchange 变体专用于基于注解的 WebFlux 或 Web MVC 应用程序,允许在 Web 处理器方法中使用特殊的 ProxyExchange 对象作为参数。