這里踩了一個大坑,因為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的代碼,希望各位同僚避免踩坑!!!!!