# boot-master **Repository Path**: whhuawei/boot_master ## Basic Information - **Project Name**: boot-master - **Description**: 结合项目使用技术点,实战整合到SpringBoot中,目前升级到2.0.2版本。【QQ群:759111321,作者QQ:1335157415】 - **Primary Language**: Java - **License**: Apache-2.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 222 - **Created**: 2018-06-05 - **Last Updated**: 2020-12-19 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # boot-master #### 项目介绍 boot-master是springBoot项目,结合项目中使用的技术点,目前升级到2.0.2版本,欢迎大家提意见,您的宝贵意见,是我们进步的动力。
#### [入门配置](https://gitee.com/bootstrap2table/boot_master/wikis/welcome) [分布式事务](https://gitee.com/bootstrap2table/boot_master/tree/feature/jta/druid) [Dubbo服务](https://gitee.com/bootstrap2table/api-master) #### 技术选型 ● 系统核心框架:SpringBoot ● 定时任务调度:ElasticJob+Zookeeper ● 数据持久框架:MyBatis ● 数据库连接池:Alibaba Druid ● 系统监控插件:JavaMelody+Druid ● 系统缓存框架:Redis-cluster ● 系统前端框架:Freemaker+Bootstrap+Jquery ● 搜索引擎框架:Solr/SolrCloud ● 分布式线程锁:Redisson ● 系统消息队列:ActiveMq ● 安全授权框架:JwtToken+AES #### **项目特点** > * 配套[代码生成工具](https://github.com/apple987/AutoCode):快速生成前后端代码,极大的提高开发效率。
> * 引入[ApacheCommons](https://gitee.com/bootstrap2table/boot_master/blob/master/src/test/java/com/qdone/DemoApacheCommonsTest.java)工具包,大幅简化开发中的io,file,collection,jexl等处理过程 。
> * 引入APP模块,根据token作为登录令牌,极大的方便了APP接口开发。
> * 引入[HibernateValidator](https://gitee.com/bootstrap2table/boot_master/blob/master/src/main/java/com/qdone/module/controller/TestController.java)校验框架,轻松实现后端校验。
> * 引入druid,javaMelody监控系统各项指标,分析系统瓶颈。
> * 前端采用freemarker模板化引擎,页面采用bootstrap-table灵活强大的表格插件。
> * 前端使用layui弹出层框架,极大的简化了弹出层的开发过程。 > * 前端采用JqueryValidate插件,快捷方便进行数据验证。
> * 后端配置swagger在线文档,极大的节省前后端项目成员的沟通成本,快速文档同步。
> * 配置druid,fastjson,cors,xss,redis-cluster组件服务。
> * 配置全局异常处理,通用日志打印,pagehelper分页。
> * 配置redisson集群模式,使用分布式锁,保证并发的数据一致性。
> * 配置全局errorPage和welcomeFile完善全局异常处理,优化异常处理代码。
> * 配置devtools热部署,针对page目录下的css,js,html页面资源修改之后,项目不需要重新启动。
> * 配置elastic-job定时器,强悍的分布式定时任务配置。
> * 配置fileupload(默认配置最大100MB),下载文件,生成二维码,二维码打印,mail发邮件等功能。
> * 配置https安全协议,提高系统安全性,配置log4j日志,系统出现异常自动发送邮件。
> * 配置poi和csv简单导出excel功能点,poi目前是多sheet智能导出。
> * 前端使用vkbeautify插件,页面格式化显示json数据。
> * 配置activeMq支持同时发送队列和主题消息。
> * 配置solr和solrCloud支持分词搜索查询。
#### **项目结构** ``` boot-master │ ├─doc 项目SQL语句 │ ├─common 公共配置 │ ├─framework 框架配置 │ ├─modules 功能模块 │ ├─app API接口模块(APP调用) │ ├─controller 系统模块 │ ├─mapper mybatis的sql文件 │ ├─model 数据库实体类 │ └─service 业务逻辑层 │ ├─StartUpApplication 项目启动类 │ ├──resources │ ├─page 页面资源 │ │ ├─static 静态资源 │ │ │ ├─css css样式 │ │ │ ├─js js文件 │ │ │ ├─images 图片文件 │ │ │ └─plugins 前端插件 │ │ │ │ │ └─view 前端页面 │ │ ├─error 系统错误页 │ │ ├─inc 公共资源页面 │ │ └─其他 系统功能页面 │ │ │ ├─application.properties 配置文件 │ ├─banner.txt 自定义启动图标 │ ├─mybatis_config.xml mybatis配置项 │ └─secure.jks ssl安全证书 ``` #### **环境配置:**
- 1.项目依赖,redis-cluster集群,zookeeper,activeMq,solr工具,目前工具运行环境(win7 x64)。
- 2.doc目录里面有初始化sql,运行项目前,请先创建mysql。
- 3.工具地址:https://pan.baidu.com/s/1Bm7udGJc40xEENFgnJjsIw - 4.配置说明:https://gitee.com/bootstrap2table/boot_master/wikis/welcome #### **启动说明:** - 1.创建mysql数据库isec实例,运行doc目录里面的sql文件。
- 2.启动redis集群(127.0.0.1:6379~6384,密码:qdone)。
- 3.启动activeMq(默认单机版)。
- 4.启动solr(默认单机版)。
- 5.启动zookeeper(默认单机版本2181)。
- 6.运行StartUpApplication启动项目,浏览器访问http://localhost。
#### **友情链接:** - GitHub:https://github.com/apple987/boot_walk
- 码云仓库: https://gitee.com/bootstrap2table/boot_master
- mycat版本: https://gitee.com/bootstrap2table/boot_master/tree/feature/mycat
- sharding-jdbc版本: https://gitee.com/bootstrap2table/boot-sharding
- jtaDruid版本: https://gitee.com/bootstrap2table/boot_master/tree/feature/jta/druid
- 代码生成: https://github.com/apple987/AutoCode
- SolrCloud: https://pan.baidu.com/s/1RbC4zS8izz9Ge8wuIdplXQ #### **问题反馈:** - 意见反馈:https://gitee.com/bootstrap2table/boot_master/issues - 联系作者: m15171479289@163.com
- 加入QQ群:
![boot-qq](https://github.com/apple987/static/raw/master/boot/image/qq.jpg "QQ群")
### 效果图 ![boot-start](https://github.com/apple987/static/raw/master/boot/image/start.png "项目启动")
![boot-ssl](https://github.com/apple987/static/raw/master/boot/image/ssl.png "初始化")
![boot-index](https://github.com/apple987/static/raw/master/boot/image/index.png "欢迎页")
![boot-swagger](https://github.com/apple987/static/raw/master/boot/image/swagger.png "swagger在线文档")
![boot-applogin](https://github.com/apple987/static/raw/master/boot/image/appLogin.jpg "app登陆接口")
![boot-appGetUser](https://github.com/apple987/static/raw/master/boot/image/appGetUser.jpg "app获得登陆信息接口")
![boot-emailError](https://github.com/apple987/static/raw/master/boot/image/emailError.jpg "邮件发送异常")
![boot-runmq](https://github.com/apple987/static/raw/master/boot/image/runmq.jpg "发送MQ消息")
![boot-mq](https://github.com/apple987/static/raw/master/boot/image/mq.jpg "MQ队列和订阅")
![boot-selectStaff](https://github.com/apple987/static/raw/master/boot/image/selectStaff.jpg "职员信息列表")
![boot-insertStaff](https://github.com/apple987/static/raw/master/boot/image/insertStaff.jpg "添加职员信息")
![boot-insertError](https://github.com/apple987/static/raw/master/boot/image/insertStaffError.jpg "validate验证信息")
![boot-durid](https://github.com/apple987/static/raw/master/boot/image/druid.png "durid监控")
![boot-javaMelody](https://github.com/apple987/static/raw/master/boot/image/javaMelody.png "javaMelody监控")
![boot-qrcode](https://github.com/apple987/static/raw/master/boot/image/qrcode.png "生成二维码")
![boot-print](https://github.com/apple987/static/raw/master/boot/image/print.png "打印二维码")
![boot-solr](https://github.com/apple987/static/raw/master/boot/image/solr.png "solr导入数据")
![boot-upload](https://github.com/apple987/static/raw/master/boot/image/upload.jpg "文本上传")
![boot-uploadError](https://github.com/apple987/static/raw/master/boot/image/uploadError.jpg "文件上传异常")