基於 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/ 就可以看到效果