JEECG-BOOT本地开发环境快速构建

JEECG是一个国内开源的快速开发的J2EE框架,JEECG-BOOT是基于Spring Boot的版本,这篇文章介绍一下快速搭建的方式。

本地开发环境构建

具体步骤可以参看:JEECG-BOOT环境搭建

事前准备

MySQL启动

使用root/root的用户名和密码可以与JEECG-BOOT缺省保持一致,无需任何修改即可

liumiaocn:jeecg liumiao$ mysql -uroot -proot
mysql: [Warning] Using a password on the command line interface can be insecure.
Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 1767
Server version: 8.0.11 Homebrew

Copyright (c) 2000, 2018, Oracle and/or its affiliates. All rights reserved.

Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.

Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.

mysql>

本地Redis安装

JEECG缺省使用127.0.0.1的本地Redis,安装即可,使用远程的Redis服务需修改JEECG配置文件。

liumiaocn:jeecg liumiao$ redis-server --version
Redis server v=5.0.4 sha=00000000:0 malloc=libc bits=64 build=c8feb247a5d1dce2
liumiaocn:jeecg liumiao$ redis-cli --version
redis-cli 5.0.4
liumiaocn:jeecg liumiao$

快速构建

构建脚本:./vue-jeecg-boot all all

执行日志如下所示:

liumiaocn:jeecg liumiao$ ./vue-jeecg-boot all all
/usr/local/bin/git
## Step 1: git clone https://github.com/zhangdaiscott/jeecg-boot.git
fatal: destination path 'jeecg-boot' already exists and is not an empty directory.
git clone failed
## Step 1: Prepare Database
mysql: [Warning] Using a password on the command line interface can be insecure.
## Step 1: Restart Redis
## Step 1: completed

## Step 2: Build Springboot Apps
## begin build jeecg-boot by using : mvn clean package
/Library/Maven/apache-maven-3.5.4//bin/mvn
   please check build log file : /tmp/easypack/jeecg/springboot-log.log
/tmp/easypack/jeecg/springboot-log.log
   build target
jeecg-boot-base-common/target/jeecg-boot-base-common-2.1.1.jar     jeecg-boot-module-system/target/jeecg-boot-module-system-2.1.1.jar
“## Step 2: completed”

## Step 3: Build Vue Apps
## begin get dependencies by using : npm install
/Users/liumiao/.nvm/versions/node/v10.15.3/bin/npm
warning package-lock.json found. Your project contains lock files generated by tools other than Yarn. It is advised not to mix package managers in order to avoid resolution inconsistencies caused by unsynchronized lock files. To clear this warning, remove package-lock.json.
   please check build log file : /tmp/easypack/jeecg/web-vue-log.log
/tmp/easypack/jeecg/web-vue-log.log
“## Step 3: completed”

## Step 4: Start Springboot Apps
kill -kill 7799
“## Step 4: completed”

## Step 5: Start Vue Apps
## begin start vue process by using : npm run serve
“## Step 5: completed”

liumiaocn:jeecg liumiao$

注:第一步的git clone提示失败可以忽视,因为本地之前执行过一次,此脚本可多次执行。

执行结果确认

  • 后端结果确认
    在这里插入图片描述

  • 前端结果确认
    在这里插入图片描述

  • 登录确认
    在这里插入图片描述

快速构建脚本

刚到了easypack上,链接如下所示
https://github.com/liumiaocn/easypack/tree/master/jeecg

发布了920 篇原创文章 · 获赞 1260 · 访问量 389万+
展开阅读全文

没有更多推荐了,返回首页

©️2019 CSDN 皮肤主题: 数字20 设计师: CSDN官方博客

分享到微信朋友圈

×

扫一扫,手机浏览