一、pom.xml 

                    <exclusions>
<!-- 移除内置tocmat 打包时开启 -->
<!-- <exclusion>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-tomcat</artifactId>
</exclusion>  -->

</exclusions>

                <!--打包时用 -->
<!-- <dependency>
<groupId>javax.servlet</groupId>
<artifactId>javax.servlet-api</artifactId>
<scope>provided</scope>
</dependency>  -->

二、项目右键->Run As->Maven build

SpringBoot项目打包过程

三、target文件夹下的1.0文件放在tomcat服务器的webapp文件夹下

相关文章:

  • 2021-04-01
  • 2021-11-06
  • 2021-08-16
  • 2021-06-05
  • 2021-09-19
  • 2021-06-23
  • 2021-12-31
  • 2021-12-10
猜你喜欢
  • 2021-11-14
  • 2021-10-09
  • 2021-10-14
  • 2021-11-04
  • 2021-09-27
相关资源
相似解决方案