安装及配置
配置Git
git安装参考:windows下git安装配置
IDEA配置Git
File->Settings->Version Control->Git
IDEA配置Maven
IDEA配置lombok
IDEA导入Elastic-Bg项目
地址:https://github.com/FaceGhost/Elastic-Bg.git
VCS->Checkout from Version Control->Git
等待拉取maven依赖,完成后项目结构如下
创建数据库,导入数据
create database elasticbg; use elasticbg;
导入表,路径:elastic-bg-seerver/resources/sql/elasticbg.sql
更新数据库连接url,用户名,密码
执行maven install
控制台输出
[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
配置下载解压的tomcat路径
部署client,server
启动tomcat
访问:http://localhost:8080/login
默认用户名:super_admin
默认密码:bg2019
支持与赞助
在线预览地址:http://elastic-bg.faceghost.com/elastic-bg-client/login
公众号:见鬼网(ID:faceghost)
赞赏: