Jeecg-Boot 极简部署方案

基于 spring boot 特性html

一、首先修改配置,去掉项目名 jeecg-bootvue

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

输入图片说明
输入图片说明

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

src/router/index.js

输入图片说明

而后 ant-design-jeecg-vue 运行 buildnpm

npm run build

三、而后将编译以后dist下的文件复制到 jeecg-boot-module-system 项目的 /src/main/resources/static 目录下。
四、修改springboot项目的启动名字,去掉项目名 jeecg-bootspringboot

jeecg-boot-module-system/src/main/resources/application-dev.yml

输入图片说明

五、从新启动项目,访问 http://localhost:8080/ 就能够看到效果app

相关文章
相关标签/搜索