1         <dependency>
 2             <groupId>org.springframework.boot</groupId>
 3             <artifactId>spring-boot-starter-web</artifactId>
 4             <!--在Web模块中排除默认的Tomcat-->
 5             <exclusions>
 6                 <exclusion>
 7                     <groupId>org.springframework.boot</groupId>
 8                     <artifactId>spring-boot-starter-tomcat</artifactId>
 9                 </exclusion>
10             </exclusions>
11         </dependency>
12 
13         <!--引入其他的servlet容器-->
14         <dependency>
15             <groupId>org.springframework.boot</groupId>
16             <artifactId>spring-boot-starter-jetty</artifactId>
17         </dependency>

 

相关文章:

  • 2021-05-26
  • 2021-12-10
  • 2022-12-23
  • 2021-07-01
  • 2021-04-07
  • 2022-01-22
  • 2021-11-10
  • 2022-01-16
猜你喜欢
  • 2021-07-14
  • 2021-10-23
  • 2021-08-01
  • 2021-12-03
  • 2022-12-23
  • 2022-02-06
相关资源
相似解决方案