springboot建立web应用程序的坑(tomcat-embed-core)


这里踩了一个大坑,因为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的代码,希望各位同僚避免踩坑!!!!!


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM