标签:apach framework 依赖 spring frame star http 形式 pen
1 <dependency> 2 <groupId>org.springframework.boot</groupId> 3 <artifactId>spring-boot-starter-web</artifactId> 4 <!-- 移除嵌入式Tomcat --> 5 <exclusions> 6 <exclusion> 7 <groupId>org.springframework.boot</groupId> 8 <artifactId>spring-boot-starter-tomcat</artifactId> 9 </exclusion> 10 </exclusions> 11 </dependency>
1 <packaging>war</packaging>
1 <dependency> 2 <groupId>org.apache.tomcat</groupId> 3 <artifactId>tomcat-servlet-api</artifactId> 4 <version>8.5.32</version> 5 <scope>provided</scope> 6 </dependency>
Spring Boot:项目打包成war并发布到Tomcat上运行
标签:apach framework 依赖 spring frame star http 形式 pen
原文地址:https://www.cnblogs.com/huiAlex/p/9463454.html