如何在 Jboss 或 Tomcat 上部署 Spring Cloud Gateway 2.1? [英] How to deploy Spring Cloud Gateway 2.1 on Jboss or Tomcat?

查看:31
本文介绍了如何在 Jboss 或 Tomcat 上部署 Spring Cloud Gateway 2.1?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想部署 Spring Cloud Gateway,但它构建在 Spring Framework 5、Project Reactor 上.

I want to a deploy Spring Cloud Gateway but it is built on Spring Framework 5, Project Reactor.

我可以创建一个 WAR 文件并将其部署在传统的应用服务器上,例如 Jboss 或 Tomcat.

Can I create a WAR file and deploy it on a traditional application server such as Jboss or Tomcat.

本页中的 Spring 文档 表示有可能.

Tomcat、Jetty、Servlet 3.1+ 容器支持 Spring WebFlux

Spring WebFlux is supported on Tomcat, Jetty, Servlet 3.1+ containers

注意:这是 Spring Cloud Gateway 项目链接https://spring.io/projects/spring-cloud-gateway

Note: this is Spring Cloud Gateway project link https://spring.io/projects/spring-cloud-gateway

推荐答案

我不认为这是可能的,因为 Spring Cloud Gateway 本身就是一个 Spring Boot WebFlux 应用程序,并且这个用例只支持嵌入式服务器,如 Spring Boot 参考文档中所述.

I don't think this is possible, as Spring Cloud Gateway is itself a Spring Boot WebFlux application and this use case is only supported with embedded servers, as mentioned in the Spring Boot reference documentation.

这篇关于如何在 Jboss 或 Tomcat 上部署 Spring Cloud Gateway 2.1?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆