Jeecg-Boot 极简部署方案

基于 spring boot 特性

1、首先修改配置,去掉项目名 jeecg-boot

ant-design-jeecg-vue/src/utils/request.js
ant-design-jeecg-vue/public/index.html

《Jeecg-Boot 极简部署方案》
《Jeecg-Boot 极简部署方案》

2、修改路由History 模式为“hash”

src/router/index.js

《Jeecg-Boot 极简部署方案》

然后 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

《Jeecg-Boot 极简部署方案》

5、重新启动项目,访问 http://localhost:8080/ 就可以看到效果

    原文作者:scott
    原文地址: https://segmentfault.com/a/1190000019417697
    本文转自网络文章,转载此文章仅为分享知识,如有侵权,请联系博主进行删除。
点赞