# rootstock **Repository Path**: hwt2017/rootstock ## Basic Information - **Project Name**: rootstock - **Description**: 气象灾害项目 - **Primary Language**: Java - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-04-17 - **Last Updated**: 2020-12-19 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README ##rootstock 1.1.0 - 基于开源方案重构微服务基础设施 - 基于 Spring Cloud Greenwich 、Spring Security OAuth2 的RBAC权限管理系统 ![](images/jiagou.png) #### 核心依赖 依赖 | 版本 ---|--- Spring Boot | 2.1.3.RELEASE Spring Cloud | Greenwich.RELEASE Spring Security OAuth2 | 2.3.3 Mybatis Plus | 3.1.0 hutool | 4.5.0 Avue | 1.5.0 #### 开发环境 - IDE : ideaIU-2018.3 - JDK : JDK1.8.x - Maven : Maven 3.5.x - MySQL: MySQL 5.7.x - Redis: Redis3.2、Unix Redis5.0 #### 下载源码 https://192.168.100.253/svn/环境业务中心/02.产品管理/02.通用产品/环境中心微服务开发框架/02.产品源码/trunk/rootstock #### 模块说明 ```lua rootstock ├── rootstock-ui -- 前端工程[8080] ├── rootstock-auth -- 授权服务提供[3000] └── rootstock-common -- 系统公共模块 ├── rootstock-common-core -- 公共工具类核心包 ├── rootstock-common-log -- 日志服务 └── rootstock-common-security -- 安全工具类 ├── rootstock-config -- 配置中心[8001] ├── rootstock-gateway -- Spring Cloud Gateway网关[8010] ├── rootstock-registry -- 服务注册与发现[8761] └── rootstock-upms -- 通用用户权限管理模块 └── rootstock-upms-api -- 通用用户权限管理系统公共api模块 └── rootstock-upms-service -- 通用用户权限管理系统业务处理模块[4000] └── rootstock-visual -- 图形化模块 ├── rootstock-monitor -- Spring Boot Admin监控 [5001] |── rootstock-codegen -- 图形化代码生成[5003] └── rootstock-zipkin -- 图形化链路跟踪、调用拓扑[5002] ``` #### 初始化数据库 - 参数说明 ```lua 版本: mysql5.6+ 默认字符集: utf8mb4 默认排序规则: utf8mb4_general_ci ``` - 脚本说明 ```lua rootstock/db/pig.sql ``` #### 配置修改 - redis 配置 rootstock/rootstock-config/src/main/resources/config/application-dev.yml ```lua # redis 无密码为空即可 spring: redis: password: ``` - 数据库配置,修改以下几个文件 ```lua rootstock/rootstock-config/src/main/resources/config/rootstock-auth-dev.yml rootstock/rootstock-config/src/main/resources/config/rootstock-upms-dev.yml rootstock/rootstock-config/src/main/resources/config/rootstock-codegen-dev.yml rootstock/rootstock-config/src/main/resources/config/rootstock-zipkin-dev.yml.yml ``` #### 启动顺序 1. RegistryApplication 2. ConfigApplication 3. GatewayApplication 4. RootstockAuthApplication 5. RootstockUpmsApplication - 使用代码生成、监控时再启动以下项目 6. RootstockCodeGenApplication 7. MonitorApplication 8. ZipkinApplication #### 提交反馈 1. 欢迎提交 issue,请写清楚遇到问题的原因,开发环境,复显步骤。 2. issue提交论坛地址:论坛地址 3. zhangrongbin@supermap.com 4. QQ群: 705700506 #### 升级记录 ##### V1.1.0 1.Spring Cloud 版本升级为Greenwich.RELEASE,Spring Boot版本升级为2.1.3.RELEASE 2.升级servlet容器为官方推荐的Spring Boot内嵌undertow容器,优化1.0.0中基础设置启动内存消耗过大问题 3.引入Lombok通过注解消除Java冗余代码 4.增加OAuth2 登录认证模块 5.删减对rabbitmq依赖,减化基础设施部署复杂度 6.自建zipkin链路跟踪服务器,增加可控性,存储方式更换为mysql 7.api网关升级使用Spring Cloud gateway替换zuul提升性能及简化配置 #### 更新说明 - 1.0.0 版本已移动到branches - 1.1.0 版本为目前开发主版本trunk,建议更换代码目录重新下载