idea打包SpringBoot项目打包成jar包
程序员文章站
2024-01-11 17:17:28
...
打包成jar包
1.
<groupId>com.squpt.springboot</groupId>
<artifactId>springbootdemo</artifactId>
<version>0.0.1-SNAPSHOT</version>
<packaging>jar</packaging>
- 1
- 2
- 3
- 4
- 5
将war改为jar
2.
3.
4.
取个名字,Command line上填写clean package
5.在cmd命令行中进入该项目的target目录,运行java -jar YourProjectName-0.0.1-SNAPSHOT.jar