JeecgBoot-极简部署方案

9次阅读

共计 415 个字符,预计需要花费 2 分钟才能阅读完成。

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

正文完
 0