基于 spring boot 特性
1、首先修改配置,去掉项目名 jeecg-boot
ant-design-jeecg-vue/src/utils/request.js
ant-design-jeecg-vue/public/index.html
2、修改路由History 模式为“hash”
src/router/index.js
然后 ant-design-jeecg-vue 运行 build
npm run build
3、然后将编译之后dist下的文件复制到 jeecg-boot-module-system 项目的 /src/main/resources/static 目录下。
4、修改springboot项目的启动名字,去掉项目名 jeecg-boot
jeecg-boot-module-system/src/main/resources/application-dev.yml
5、重新启动项目,访问 http://localhost:8080/ 就可以看到效果
原文地址:https://segmentfault.com/a/1190000019417697,作者:scott
以上就是对Jeecg-Boot 极简部署方案的相关介绍,希望对您学习springboot,webstorm,node.js,java有所帮助,感谢您关注懒咪IT学习网!
本文地址:https://c.lanmit.com/bianchengkaifa/Java/15.html