简体   繁体   English

将嵌入式 tomcat 服务器版本更改为 9 并使用 spring 启动 1.5.10 RELEASE 能够开始嵌入 web 应用程序

[英]Changed embedded tomcat server version to 9 and using spring boot 1.5.10 RELEASE getting able to start embed web application

We are using spring boot 1.5.10 release and default embedded tomcat server 8.4.5 and changed the tomcat server to 9.0.3 by using Gradle 2.12 version in build.gradle ext('tomcat.version:9.0.3')我们正在使用 spring 引导 1.5.10 版本和默认嵌入式 tomcat 服务器 8.4.5,并通过使用 Gradle 2.12 版本 build.gradle ext('0tomcat.3version')9 将 tomcat 服务器更改为 9.0.3

and trying to run apllication Getting Error: .... nested exception is java.lang.NoSuchMethodError: org.apache.catalina.Context.addServletMapping(Ljava/lang/String)并尝试运行应用程序获取错误:....嵌套异常是 java.lang.NoSuchMethodError:org.apache.catalina.Context.addServletMapping(Ljava/lang/String)

Spring Boot 1.5 does not support using Tomcat 9 as an embedded web server . Spring Boot 1.5 不支持使用 Tomcat 9 作为嵌入式 web 服务器 To use Tomcat 9 you should upgrade to a supported version of Spring Boot.要使用 Tomcat 9,您应该升级到受支持的版本 Spring Boot。 At the time of writing, 2.5.x and 2.6.x are the supported versions.在撰写本文时,2.5.x 和 2.6.x 是受支持的版本。 Both use Tomcat 9.0.x by default.两者都默认使用 Tomcat 9.0.x。

暂无
暂无

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

相关问题 无法在本地tomcat(嵌入式Spring Boot)服务器上运行SpringBoot 1.5.10.RELEASE - Not able to run SpringBoot 1.5.10.RELEASE on local tomcat(spring boot embedded) server Spring-Boot无法启动嵌入式Tomcat - Spring-Boot not able to start embedded Tomcat 无法使用嵌入式 tomcat 服务器在 spring 引导中运行 jsp 文件 - Not able to run jsp file in spring boot using embedded tomcat server 无法启动 bean 'webServerStartStop'; 无法启动嵌入式 Tomcat 服务器 - spring-boot-starter-web - Failed to start bean 'webServerStartStop'; Unable to start embedded Tomcat server - spring-boot-starter-web 在 Tomcat 服务器上自动启动 Spring 引导应用程序 - Start Spring Boot Application automatically on Tomcat server Spring 引导 Web 应用程序不以模块信息启动 - Embedded Tomcat in Spring Boot Web application does not start with module-info Spring 启动 web 应用程序正在嵌入 tomcat 但不在外部 - Spring boot web application is working in embed tomcat but not in external 如何为嵌入在我的 spring-boot 应用程序中的 Web 服务器(Tomcat)配置低级套接字属性? - How to configure low-level socket properties for a web server (Tomcat) embedded in my spring-boot application? 无法使用NetBeans 8.2和Spring Boot启动嵌入式Tomcat - Unable to start embedded Tomcat using NetBeans 8.2 and Spring Boot 无法使用jshell启动Spring Boot应用程序 - Not able to start spring boot application using jshell
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM