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

查看:306
本文介绍了如何在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应用程序,并且仅在嵌入式服务器中支持此用例,

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天全站免登陆