使用jetty容器

This commit is contained in:
2019-08-18 19:07:57 +08:00
parent cb264276dc
commit b1102b472c
2 changed files with 13 additions and 1 deletions

12
pom.xml
View File

@@ -23,6 +23,18 @@
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
<exclusions>
<!-- tomcat加载优先级高于jetty若不加排除则仍然加载tomcat -->
<exclusion>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-tomcat</artifactId>
</exclusion>
</exclusions>
</dependency>
<!-- 使用 Jetty 容器 -->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-jetty</artifactId>
</dependency>
<dependency>