JeecgBoot-极简部署方案

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

评论

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注

这个站点使用 Akismet 来减少垃圾评论。了解你的评论数据如何被处理