我可以在Tomcat 8.0.x上部署spring-boot 2.0 WAR吗?

问题描述 投票:1回答:1

spring-boot 2.0已经推出一周了。博客文章提到现在有嵌入式tomcat的Tomcat 8.5基线。

这是否意味着如果我使用spring-boot 2.0应用程序的WAR部署,或者Tomcat 8.0.x仍然有用,我需要拥有Tomcat 8.5?

spring-boot tomcat8
1个回答
5
投票

官方的Spring Boot 2.0.0文档指出Tomcat 8.5是嵌入式服务器的基准版本。

Spring Framework 5.0 itself requires Servlet 3.1+ containers and Tomcat 8.5+用于嵌入式和战争部署。

虽然将Spring MVC应用程序部署到Tomcat 8.0.x服务器可能仍然有效,但Spring Framework和Spring Boot都不会正式支持它。

© www.soinside.com 2019 - 2024. All rights reserved.