<!--引入Web模块,需添加spring-boot-starter-web模块-->
<dependency>
<groupId>org.springframework.boot</g</groupId>
<artifactId>spring-boot-starter-web</artifactId>
<!--第一步:移除嵌入式tomcat插件-->
<exclusions>
<exclusion>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-tomcat</artifactId>
</exclusion>
</exclusions>
</dependency>
pom中使用springboot的starter排除某个内嵌maven坐标组件
最新推荐文章于 2025-03-12 14:45:45 发布