[英]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.