简体   繁体   English

升级到Spring 5是否需要Tomcat 8.5+

[英]Does upgrade to Spring 5 require Tomcat 8.5+

Every tutorial for the upgrade to Spring 5 has tomcat 8.5+ as a requirement but no detailed explanation. 升级到Spring 5的每个教程都有tomcat 8.5+作为要求,但没有详细说明。 The application that I want to upgrade should not run as a standalone application with an embedded webserver, but beeing deployed on a tomcat 6, which we cannot upgrade for several reasons. 我想升级的应用程序不应该作为带有嵌入式Web服务器的独立应用程序运行,而是部署在tomcat 6上,由于多种原因我们无法升级。

As @procrastinate_later points out, Spring 5 actually requires Servlet 3.1 (and Tomcat 8.5.x). 正如@procrastinate_later所指出的, Spring 5实际上需要Servlet 3.1(和Tomcat 8.5.x)。

Spring 5 has initially was expected to have Servlet 3.0 + minimum requirement which supported only from tomcat 7 Spring 5最初预计将具有Servlet 3.0 +最低要求,仅支持tomcat 7

We'll definitely raise to Servlet 3.0+ (from our present Servlet 2.5 runtime compatibility) 我们肯定会提升到Servlet 3.0+(来自我们目前的Servlet 2.5运行时兼容性)

So you need to upgrade to at least Tomcat 7. 所以你需要升级到至少Tomcat 7。

Looking at the What's New in Spring Framework 5.x documentation : 查看Spring Framework 5.x文档中的新功能

Java EE 7 API level required in Spring's corresponding features now. 现在,Spring的相应功能需要Java EE 7 API级别。

  • Servlet 3.1, Bean Validation 1.1, JPA 2.1, JMS 2.0 Servlet 3.1,Bean Validation 1.1,JPA 2.1,JMS 2.0
  • Recent servers: eg Tomcat 8.5+, Jetty 9.4+, WildFly 10+ 最近的服务器:例如Tomcat 8.5 +,Jetty 9.4 +,WildFly 10+

Cross-referencing this with the Apache Tomcat Which Version documentation , Tomcat 8.0 would be sufficient for the Servlet 3.1 requirement, but Tomcat 8.0 has been superseded by Tomcat 8.5+, as stated in the Which Version (Tomcat 8.x) documentation : 使用Apache Tomcat对哪个版本文档进行交叉引用,Tomcat 8.0就足以满足Servlet 3.1的要求,但Tomcat 8.0已被Tomcat 8.5+取代,如在哪个版本(Tomcat 8.x)文档中所述

Tomcat 8.5 is thought as a replacement for Tomcat 8.0. Tomcat 8.5被认为是Tomcat 8.0的替代品。 Please refer to Migration guide for guidance on migrating to Tomcat 8.5....Users of Tomcat 8.0 should be aware that Tomcat 8.0 has now reached end of life . 有关迁移到Tomcat 8.5的指导,请参阅迁移指南 .... Tomcat 8.0的用户应该知道Tomcat 8.0现已达到使用寿命 Users of Tomcat 8.0.x should upgrade to Tomcat 8.5.x or later. Tomcat 8.0.x的用户应升级到Tomcat 8.5.x或更高版本。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM