更换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>