IDEA 运行 Elastic-Bg 框架
原创 xingfu2017 发表于:2019-02-16 16:41:22
  阅读 :554   收藏   编辑

安装及配置

配置Git

git安装参考:windows下git安装配置

IDEA配置Git

File->Settings->Version Control->Git

1

  • IDEA配置Maven

参考:IntelliJ IDEA配置Maven

  • IDEA配置lombok

参考:IDEA 安装lombok插件  

  • IDEA导入Elastic-Bg项目

地址:https://github.com/FaceGhost/Elastic-Bg.git 

VCS->Checkout from Version Control->Git

2

等待拉取maven依赖,完成后项目结构如下

3

  • 创建数据库,导入数据

create database elasticbg;
use elasticbg;

导入表,路径:elastic-bg-seerver/resources/sql/elasticbg.sql

4


  • 更新数据库连接url,用户名,密码

5

  • 执行maven install

7

控制台输出

[INFO] Elastic-Bg Maven ................................... SUCCESS [  0.586 s]
[INFO] spring-boot-starter-grpc ........................... SUCCESS [05:14 min]
[INFO] elastic-bg-base .................................... SUCCESS [  6.473 s]
[INFO] elastic-bg-client .................................. SUCCESS [ 32.014 s]
[INFO] elastic-bg-server .................................. SUCCESS [ 22.660 s]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 06:17 min
[INFO] Finished at: 2019-02-16T16:08:39+08:00
[INFO] Final Memory: 61M/396M
[INFO] ------------------------------------------------------------------------
Process finished with exit code 0

配置tomcat

tomcat8下载:https://tomcat.apache.org/download-80.cgi 

Run ->  Edit Configurations

1

配置下载解压的tomcat路径

2

部署client,server

2

  • 启动tomcat

访问:http://localhost:8080/login

默认用户名:super_admin

默认密码:bg2019

  • 支持与赞助

在线预览地址:http://elastic-bg.faceghost.com/elastic-bg-client/login

公众号:见鬼网(ID:faceghost)

赞赏:

pau