这里踩了一个大坑,因为spring-boot-starter-web这个jar包中已经有tomcat了,所以有一定的机率 导致创建web项目失败,

所以要做一件事,就是把tomcat排除

<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
<exclusions>
<exclusion>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-tomcat</artifactId>
</exclusion>
</exclusions>
</dependency>

其中红色的部门就是排除tomcat的代码,希望各位同僚避免踩坑!!!!!

相关文章:

  • 2021-11-22
  • 2021-11-04
  • 2021-12-08
  • 2022-12-23
  • 2021-07-09
  • 2022-12-23
  • 2022-12-23
  • 2021-06-27
猜你喜欢
  • 2021-06-05
  • 2021-09-24
  • 2022-12-23
  • 2021-07-07
  • 2021-08-30
  • 2022-02-01
  • 2021-08-14
相关资源
相似解决方案