JeecgBoot全套开发环境搭建
1. 下载JeecgBoot全套源码
下载地址:https://github.com/zhangdaiscott。
将源码解压到本地目录,我的本地目录是:E:\Jeecg。
2. 基本环境搭建
安装JDK,Maven,Redis,Mysql,Node.js,npm,yarn,Lombok Plugin,JRebel,Babel,Vue.js Plugin。
3. 搭建Jeecg-Boot
用IDEA打开E:\Jeecg\jeecg-boot-master\jeecg-boot,在MySQL中(用户名:root,密码:root)执行E:\Jeecg\jeecg-boot-master\jeecg-boot\db\jeecgboot-mysql-5.7.sql脚本,新建数据库jeecg-boot,启动Redis,Ctrl+Alt+F10启动项目,swagger接口地址:http://localhost:8080。
4. 搭建Ant-Design-Vue-Jeecg
用WebStorm打开E:\Jeecg\jeecg-boot-master\ant-design-vue-jeecg,npm install安装依赖,npm run serve启动PC前端项目,浏览器访问地址:http://localhost:3000。
5. 搭建Jeecg-Uniapp
用WebStorm打开E:\Jeecg\jeecg-uniapp-master,先启动E:\Jeecg\jeecg-boot-master\jeecg-boot\下的jeecg-boot项目,本地访问地址:http://localhost:8080/jeecg-boot/。
>> npm init
>> npm install
1
2
报错如下:
报错原因:需要指定npm仓库是私有还是有远程npm托管库,有两种解决方案
(1)将项目设置为私有,在package.json中添加:
"private": true,
1
(2)将项目的仓库地址在package.json中添加:
"repository": {
"type": "git",
"url": "http://baidu.com"
}
1
2
3
4
这还需要结合Uni-app官网的搭建方式来看。
6. 搭建Jeewx-Boot
用IDEA打开Jeewx-Boot(免费微信管家平台),本机地址:E:\Jeecg\jeewx-boot-master,在MySQL中执行E:\Jeecg\jeewx-boot-master\db\目录下的schema_mysql5.7.sql和jeewx-boot-mysql5.7.sql脚本,新建数据库jeewx-boot-os,Ctrl+Alt+F10启动项目,浏览器访问http://localhost:80,进入捷微微信管家平台。
7. 搭建Jeecg(旧版本SpringMVC)
用IDEA打开E:\Jeecg\jeecg-master,在MySQL数据库中执行脚本:E:\Jeecg\jeecg-master\docs\jeecg_4.0_mysql.sql,Ctrl+Alt+F10启动项目。这是SpringMVC的项目,后续还需要好好看。
8. 搭建Autopoi
用IDEA打开E:\Jeecg\autopoi-master,这是Word和Excel的导入导出模块。
9. 使用积木报表
浏览器打开http://jimureport.com/login,注册后登录,免费使用积木报表功能。
————————————————
版权声明:本文为CSDN博主「魏晓蕾」的原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接及本声明。
原文链接:https://blog.csdn.net/gongxifacai_believe/article/details/109176618