# kmb_boot_plus **Repository Path**: minhong/kmb_boot_plus ## Basic Information - **Project Name**: kmb_boot_plus - **Description**: kmb_boot_plus - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2019-12-15 - **Last Updated**: 2021-10-12 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # kmb_boot_plus ## 开发工具 工具 | 地址 ----|---- Intellij IDEA | https://www.jetbrains.com/idea/download xShell | Postman | https://www.getpostman.com/downloads/ 亿图图示 | https://www.edrawsoft.cn/edrawmax/ 亿图导图 | https://www.edrawsoft.cn/mindmaster/ ## 后端技术 技术 | 说明 | 地址 ----|----|---- Spring Boot | 新一代 JavaEE 开发标准 | [GitHub](https://github.com/spring-projects/spring-boot) Spring Cloud Alibaba | 阿里巴巴基于 Spring Cloud 编程模型的微服务生态 | [GitHub](https://github.com/alibaba/spring-cloud-alibaba) Spring Cloud Alibaba Nacos| 与 Spring Cloud Alibaba 生态相结合的服务注册与发现中心、配置中心 Spring Cloud Alibaba Sentinel | 限流、熔断 Spring Cloud Alibaba Dubbo | 与 Spring Cloud Alibaba 生态相结合的高性能 Java RPC 框架 | [GitHub](https://github.com/apache/dubbo) Spring Cloud RabbitMq | 分布式消息系统 | Spring Security oAuth2 | 安全认证和授权框架 | [GitHub](https://github.com/spring-projects/spring-security-oauth) TkMyBatis | 基于 MyBatis 二次开发的轻量级框架,用于简化 MyBatis 操作 | [GitHub](https://github.com/abel533/Mapper) MyBatisGenerator | Maven 插件,用于 MyBatis 相关代码生成 | [官网](http://www.mybatis.org/generator/) MybatisCodeHelper | Intellij IDEA 插件,用于 MyBatis 相关代码生成 | [官网](https://plugins.jetbrains.com/plugin/9837-mybatiscodehelperpro) PageHelper | MyBatis 分页插件 | [GitHub](https://github.com/pagehelper/Mybatis-PageHelper) Swagger | API 文档生成工具 | [GitHub](https://github.com/swagger-api/swagger-ui) HikariCP | 数据库连接池 | [GitHub](https://github.com/brettwooldridge/HikariCP) postgresql | 数据库 | Alibaba FastDFS| 分布式文件系统 | OKHttp3 | 轻量级网络框架 | [GitHub](https://github.com/square/okhttp) OpenFeign | 声明式 HTTP 客户端 | [GitHub](https://github.com/OpenFeign/feign) Nginx | 反向代理负载均衡 ## 框架图 ![输入图片说明](https://images.gitee.com/uploads/images/2020/0117/134113_3c4ed0a7_2066249.png "公共管理系统架构图.PNG") ## 框架集成 集成 | 完成 ----|---- Spring Boot | ✔ Spring Cloud Alibaba | ✔ Spring Cloud Alibaba Dubbo | ✔ Spring Cloud Alibaba Sentinel | ✔ Spring Security oAuth2 | ✔ TkMyBatis | ✔ HikariCP | ✔ OKHttp3 | ✔ Feign 传递 Token | ✔ ## 后台功能清单 ### 后台登录 功能 | 完成 ----|---- 用户注册 | ✔ 用户登录 | ✔ 获取 Token | ✔ 刷新 Token | ✔ 注销 Token | ✔ ### 个人信息 功能 | 完成 ----|---- 查看信息 | ✔ 更新信息 | ✔ 更新密码 | ✔ ### 权限管理 角色 | 菜单 ----|---- 超级管理员 | 所有菜单权限 运营人员 | 首页、用户 功能 | 说明 | 完成 ----|----|---- 权限管理 | 添加权限、删除权限、修改权限、以树形结构返回权限 | 角色管理 | 添加角色、删除角色、更新角色、角色列表、获取角色权限、修改角色权限 | 成员管理 | CRUD、为成员分配角色、获取成员角色、权限分配、获取权限列表 | ## 后台服务规划 ### 数据访问 服务名 | 端口 | 说明 ----|----|---- provider-admin-api | 随机 | 用户服务提供者 provider-share-api | 随机 | 模块管理和流程管理服务提供者 ### 业务逻辑 服务名 | 端口 | 说明 ----|----|---- kmb-user-service | 9000 | 个人信息服务 kmb-security-service | 9001 | 安全认证服务 kmb-share-service | 9002 | 模块管理和流程管理服务 ### 文件服务 服务名 | 端口 | 说明 ----|----|---- kmb-upload-service | 10001 | 文件上传服务 kmb-message | 10002 | 消息队列服务 (待完成) ### 消息队列 服务名 | 端口 | 说明 ----|----|---- kmb-message-log | 20001 | 日志消费者 (待完成) ### 网关 服务名 | 端口 | 说明 ----|----|---- gateway | 8888 | Spring Cloud Gateway ### 健康检查 服务名 | 端口 | 说明 ----|----|---- kmb-admin | 8769 | Spring boot admin ### 链路追踪 服务名 | 端口 | 说明 ----|----|---- kmb-zipkin | 9411 | Spring Cloud zipkin ### 使用说明 1.新建数据库,导数数据库脚本(根目录docs下),新建oauth安全认证的数据库表,运行create.sql新建业务相关的表 2.启动provider-admin-service 用户服务提供者 3.启动provider-share-service 模块管理和流程管理服务提供者 4.启动kmb-security-serice 安全认证中心 5.启动kmb-user-svice 用户相关微服务 6.启动kmb-share-service 业务微服务 7.启动kmb-gateway 网关 8.启动kmb-admin 全局健康检查微服务 默认用户名密码 admin/admin 9.启动kmb-zipkin 调用链路追踪微服务