使用Maven进行打包

在自己的电脑终端中进入到pom.xml文件的目录中执行maven打包。
命令为:

mvn clean package
Jar包方式运行web项目
  • 1

成功的标志为

上面显示BUILD SUCCESS成功
打包成功后,我们可以在target目录下看见该项目的jar包


记得在target目录下运行

jar SpringBoot-Test-1.0-SNAPSHOT.jar
Jar包方式运行web项目
  • 1

http://localhost:8080/index.html
成功访问


相关文章:

  • 2021-12-04
  • 2021-08-27
  • 2021-09-25
  • 2021-11-18
  • 2021-12-05
  • 2021-07-01
猜你喜欢
  • 2021-05-26
  • 2022-12-23
  • 2022-12-23
  • 2021-07-18
  • 2022-12-23
  • 2021-07-05
相关资源
相似解决方案