1.在项目的pom.xml 加入<packaging>jar</packaging>

IDEA springboot项目打包jar

2.进入 Run/Debug Configurations 页面

 IDEA springboot项目打包jar

3.选择maven

IDEA springboot项目打包jar

4.选择打包路径,以及输入maven打包命令

IDEA springboot项目打包jar

5.保存 ok

相关文章: