基于 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