我想将tomcat切换到undertow,我的pom.xml如下所示:
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
<exclusions>
<exclusion>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-start-tomcat</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-undertow</artifactId>
<version>2.2.2.RELEASE</version>
</dependency>但是,运行应用程序
Starting Servlet engine: [Apache Tomcat/9.0.29]
...
Tomcat started on port(s): 8899 (http) with context path ''我做错了什么?
谢谢:)
发布于 2019-12-19 14:48:29
在你的排除中有一个小的打字错误。你有spring-boot-start-tomcat。应该是spring-boot-starter-tomcat。
https://stackoverflow.com/questions/59402503
复制相似问题