更换SpringBoot中默认的web容器为jetty

在pom文件中:
<dependency>
<groupId>org.springframework.boot</groupId>
<artifact>spring-boot-starter-web</artifact>
<exclusions>
<exclusion>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-tomcat</artifactId>
</exclusion>
</exclusions>
</dependency>

<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-jetty</artifactId>
</dependency>
posted @ 2018-09-10 21:23  猎鹰2015  阅读(1711)  评论(0编辑  收藏  举报