一. Vue 项目的打包
在 Vue 项目路径下打开 cmd,输入以下命令:
npm run build
出现如下提示说明打包成功:

成功后会在项目目录下生成 dist 目录,将该目录下的 index.html 和 static 文件夹压缩后上传到 linux 下的 nginx 的 html 目录下:

解压缩生成 index.html 和 static 文件:
unzip dist.zip
二. SpringBoot 项目的打包
使用 IDEA 打开项目,使用 maven 将程序打成 jar 包:

打包命令:
mvn clean
mvn insta