把vue 项目打包成dist包
npm run build 生成dist包
在springboot 项目中resource文件下创建static 文件
把dist 解压的文件复制到static 下
在application.properties 中配置路径
spring.resources.static-locations=classpath:/META-INF/resources/,classpath:/resources/,\
classpath:/static/,classpath:/public/,file:${web.upload-path}
index.html属于第一个static下的文件即/static/index.html
注意点
apiurl对应的后台ip需要修改
前端的代理修改