Giter Site home page Giter Site logo

sindazeng / xhuicloud Goto Github PK

View Code? Open in Web Editor NEW
116.0 12.0 30.0 138.66 MB

🎉(星辉云),基于SpringBoot、SpringCloudAlibaba、SpringAuthorizationServer的微服务开发框架, RBAC权限管理系统、支持OAuth2.0协议、支持多种社交登录, 拥有众多常用的第三方自动装配包, 即下即用、简单便捷、 如果觉得可以帮助到您,麻烦右上角点个star、关注后续更新~:sparkles::sparkles::sparkles:

License: MIT License

Java 62.86% CSS 1.80% FreeMarker 3.20% JavaScript 28.24% HTML 3.76% Dockerfile 0.14%
nacos rabbitmq redis springcloud mybatis springboot java oauth2 swagger2

xhuicloud's Introduction

logo

XHuiCloud - 星辉云快速开发

LICENSE XHuiCloud SpringBoot SpringCloud SpringCloudAlibaba SpringAuthorizationServer xhuicloud

温馨提醒

  1. 快速体验项目在线访问地址
  2. 接口文档swagger在线
  3. 项目文档语雀
  4. 前端代码Go

前言

本项目致力于采用现阶段流行技术,打造快速开发平台,做到适配各种场景的脚手架。

项目介绍

星辉云是基于(SpringBoot + SpringCloudAlibaba + SpringAuthorizationServer + MyBatis-Plus) 支持Docker容器化部署,主要目的让我们注重业务,降低技术门槛,节省人力成本,缩短项目周期,提高工程的安全与质量。

技术栈支持

  • 基于spring-securityRBAC权限验证
  • 支持OAuth2.0协议授权校验
  • 支持Seata分布式事务
  • 支持Nacos注册中心
  • 支持Sentinel
  • 支持灰度发布 以及自定义灰度发布策略入口
  • 支持Mybatis-plus多租户模式
  • 支持多数据源,简单配置即可动态切换数据源
  • 支持Rabbit-mq 并自动注册队列以及错误队列,以及通用发送组件
  • 支持redission以及zookeeper的分布式锁
  • 基于zookeeper分布式发号器
  • 支持分布式任务xxl-job并且扩展使其可动态发布任务
  • 支持分布式任务elastic-Job
  • 支持swagger接口文档,ui界面使用knife4j-ui
  • 支持注解方式对敏感信息进行脱敏打码
  • 拥有超级强大的代码生成器一键生成前后端代码(控制层、持久层、视图层)
  • 支持细化的按钮权限及数据权限以及客户端权限
  • 支持Amazonaws S3协议的通用oss接口
  • 支持bom 模块版本管理,尽可能的松耦合,方便模块升级、 增减模块

模块规划(按顺序实现)

  • 认证中心(快速体验授权登录 U:admin P:123456)
  • 用户管理
  • 角色管理
  • 部门管理
  • 菜单管理
  • 租户管理
  • 公共参数
  • 登录记录
  • 操作记录
  • 文件管理
  • 图库管理
  • 数据字典
  • 代码生成
  • 灰度发布
  • 推送中心
  • 监控平台
  • 微信公众号运营管理(进度 70%)
  • 基础运营系统
  • OA办公自动化
  • 聚合支付
  • 大屏系统
  • 报表系统
  • 内容管理

目录结构

XHuiCloud
├── XHuiCloud-auth                                          -- 认证服务器[16000]
└── XHuiCloud-commons                                       -- 公共模块 
     ├── XHuiCloud-common-authorization                     -- 认证授权模块
     ├── XHuiCloud-common-authorization-resource            -- 资源服务模块
     ├── XHuiCloud-common-core                              -- 公共核心模块
     ├── XHuiCloud-common-data                              -- 数据缓存模块
     ├── XHuiCloud-common-dds                               -- 动态数据源模块
     ├── XHuiCloud-common-elasticJob                        -- elasticJob自动配置模块
     ├── XHuiCloud-common-feign                             -- 公共feign
     ├── XHuiCloud-common-gateway                           -- 网关核心模块
     ├── XHuiCloud-common-gray                              -- 灰度发布
     ├── XHuiCloud-common-mqtt                              -- mqtt 模块
     ├   └── XHuiCloud-common-mqtt-server                   -- mqtt服务端
     ├── XHuiCloud-common-lock                              -- 分布式锁模块
     ├── XHuiCloud-common-log                               -- 公共日志核心
     ├── XHuiCloud-common-mybaits                           -- 数据源模块
     ├── XHuiCloud-common-oss                               -- 公共存储桶配置模块
     ├── XHuiCloud-common-rabbitMq                          -- rabbitMqp配置模块
     ├── XHuiCloud-common-sentinel                          -- 高可用的保证,限流降级模块
     ├── XHuiCloud-common-swagger                           -- 接口文档模块
     ├── XHuiCloud-common-seata                             -- 分布式事务模块
     ├── XHuiCloud-common-xxl                               -- XXL-JOB配置模块
     └── XHuiCloud-common-zero                              -- 分布式发号器
├── XHuiCloud-dependencies-bom                              -- 统一依赖管理
├── XHuiCloud-business                                      -- 系统管理业务模块
     ├── XHuiCloud-gateway                                  -- Api网关[15000]
     ├── XHuiCloud-generator                                -- 开发平台[21000]
     ├── XHuiCloud-logs                                     -- 日志服务器(18000)
     └── XHuiCloud-job                                      -- 定时任务
        └── XHuiCloud-job-api                               -- 定时任务公共api
        └── XHuiCloud-job-service                           -- 定时任务服务(19000)
     └──XHuiCloud-logs                                      -- 操作日志模块
        └── XHuiCloud-logs-api                              -- 操作日志公共api
        └── XHuiCloud-logs-service                          -- 操作日志服务(18000)
     └──XHuiCloud-pay                                       -- 支付中心模块
        └── XHuiCloud-pay-api                               -- 支付中心公共api
        └── XHuiCloud-pay-service                           -- 支付中心服务(23000)
     └──XHuiCloud-push                                      -- 统一推送中心模块
        └── XHuiCloud-push-api                              -- 统一推送中心公共api
        └── XHuiCloud-push-service                          -- 统一推送中心服务(22000)
     ├── XHuiCloud-register                                 -- 注册中心(13000)
     ├── XHuiCloud-monitor                                  -- 监控中心(9090)
     ├── XHuiCloud-sentinel-dashboard                       -- Sentinel监控模块(10101)
     ├── XHuiCloud-seata                                    -- 事务管理模块(8091)
     └── XHuiCloud-xxl-admin                                -- 定时任务管理模块(20000)
└── XHuiCloud-upms                                          -- 权限管理模块
     └── XHuiCloud-upms-api                                 -- 系统权限管理公共api模块
     └── XHuiCloud-upms-service                             -- 系统权限管理业务处理模块[17000]

架构

系统架构图:

业务架构图:

待整理

开发环境

工具 版本号
JDK 1.8
Mysql 8.0.28
Redis 6.2.6
RabbitMQ 3.x
Nginx 1.10
Minio

交流

XHuiCloud 是遵从MIT协议完全开源免费的项目,由作者空闲时间开发,所以如果有写的粗糙的地方,可以发邮件加我好友,在帮助作者更方便地进行系统的开发,同时欢迎提问使用方面问题。

鸣谢

  • 感谢 JetBrains 提供的 License。

许可证

MIT

Copyright (c) <2021-2022> Sinda([email protected])

xhuicloud's People

Contributors

dependabot[bot] avatar sindazeng avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

xhuicloud's Issues

Dependency org.yaml:snakeyaml, leading to CVE problem

Hi, In /XHuiCloud-commons/XHuiCloud-common-zero,there is a dependency org.yaml:snakeyaml:1.30 that calls the risk method.

CVE-2022-25857

The scope of this CVE affected version is ** [0,1.31)**

After further analysis, in this project, the main Api called is org.yaml.snakeyaml.composer.Composer: composeNode(org.yaml.snakeyaml.nodes.Node)Lorg.yaml.snakeyaml.nodes.Node;

Risk method repair link : GitHub

CVE Bug Invocation Path--

Path Length : 5

CVE Bug Invocation Path : 
com.xhuicloud.common.zero.connect.SnowflakeZookeeper: init()Ljava.lang.Boolean; /.m2/repository/jakarta/annotation/jakarta.annotation-api/1.3.5/jakarta.annotation-api-1.3.5.jar
org.yaml.snakeyaml.Yaml$1: next()Ljava.lang.Object; /.m2/repository/org/hdrhistogram/HdrHistogram/2.1.12/HdrHistogram-2.1.12.jar
org.yaml.snakeyaml.constructor.BaseConstructor: getData()Ljava.lang.Object; /.m2/repository/org/hdrhistogram/HdrHistogram/2.1.12/HdrHistogram-2.1.12.jar
org.yaml.snakeyaml.composer.Composer: getNode()Lorg.yaml.snakeyaml.nodes.Node; /.m2/repository/org/hdrhistogram/HdrHistogram/2.1.12/HdrHistogram-2.1.12.jar
org.yaml.snakeyaml.composer.Composer: composeNode(org.yaml.snakeyaml.nodes.Node)Lorg.yaml.snakeyaml.nodes.Node;

Dependency tree--

[INFO] com.xhuicloud:XHuiCloud-common-zero:jar:2.0.3
[INFO] +- org.apache.curator:curator-framework:jar:5.1.0:compile
[INFO] |  \- org.apache.curator:curator-client:jar:5.1.0:compile
[INFO] |     +- org.apache.zookeeper:zookeeper:jar:3.6.0:compile
[INFO] |     |  +- commons-lang:commons-lang:jar:2.6:compile
[INFO] |     |  +- org.apache.zookeeper:zookeeper-jute:jar:3.6.0:compile
[INFO] |     |  +- org.apache.yetus:audience-annotations:jar:0.5.0:compile
[INFO] |     |  +- io.netty:netty-handler:jar:4.1.78.Final:compile
[INFO] |     |  |  +- io.netty:netty-common:jar:4.1.78.Final:compile
[INFO] |     |  |  +- io.netty:netty-resolver:jar:4.1.78.Final:compile
[INFO] |     |  |  +- io.netty:netty-buffer:jar:4.1.78.Final:compile
[INFO] |     |  |  +- io.netty:netty-transport:jar:4.1.78.Final:compile
[INFO] |     |  |  +- io.netty:netty-transport-native-unix-common:jar:4.1.78.Final:compile
[INFO] |     |  |  \- io.netty:netty-codec:jar:4.1.78.Final:compile
[INFO] |     |  \- io.netty:netty-transport-native-epoll:jar:4.1.78.Final:compile
[INFO] |     |     \- io.netty:netty-transport-classes-epoll:jar:4.1.78.Final:compile
[INFO] |     +- com.google.guava:guava:jar:20.0:compile
[INFO] |     \- org.slf4j:slf4j-api:jar:1.7.36:compile
[INFO] +- commons-io:commons-io:jar:2.6:compile
[INFO] +- org.springframework.boot:spring-boot-starter-json:jar:2.7.1:compile
[INFO] |  +- org.springframework.boot:spring-boot-starter:jar:2.7.1:compile
[INFO] |  |  +- org.springframework.boot:spring-boot:jar:2.7.1:compile
[INFO] |  |  |  \- org.springframework:spring-context:jar:5.3.21:compile
[INFO] |  |  |     +- org.springframework:spring-aop:jar:5.3.21:compile
[INFO] |  |  |     \- org.springframework:spring-expression:jar:5.3.21:compile
[INFO] |  |  +- org.springframework.boot:spring-boot-autoconfigure:jar:2.7.1:compile
[INFO] |  |  +- org.springframework.boot:spring-boot-starter-logging:jar:2.7.1:compile
[INFO] |  |  |  +- ch.qos.logback:logback-classic:jar:1.2.11:compile
[INFO] |  |  |  |  \- ch.qos.logback:logback-core:jar:1.2.11:compile
[INFO] |  |  |  +- org.apache.logging.log4j:log4j-to-slf4j:jar:2.17.2:compile
[INFO] |  |  |  |  \- org.apache.logging.log4j:log4j-api:jar:2.17.2:compile
[INFO] |  |  |  \- org.slf4j:jul-to-slf4j:jar:1.7.36:compile
[INFO] |  |  +- jakarta.annotation:jakarta.annotation-api:jar:1.3.5:compile
[INFO] |  |  +- org.springframework:spring-core:jar:5.3.21:compile
[INFO] |  |  |  \- org.springframework:spring-jcl:jar:5.3.21:compile
[INFO] |  |  \- org.yaml:snakeyaml:jar:1.30:compile
[INFO] |  +- org.springframework:spring-web:jar:5.3.21:compile
[INFO] |  |  \- org.springframework:spring-beans:jar:5.3.21:compile
[INFO] |  +- com.fasterxml.jackson.core:jackson-databind:jar:2.13.3:compile
[INFO] |  |  +- com.fasterxml.jackson.core:jackson-annotations:jar:2.13.3:compile
[INFO] |  |  \- com.fasterxml.jackson.core:jackson-core:jar:2.13.3:compile
[INFO] |  +- com.fasterxml.jackson.datatype:jackson-datatype-jdk8:jar:2.13.3:compile
[INFO] |  +- com.fasterxml.jackson.datatype:jackson-datatype-jsr310:jar:2.13.3:compile
[INFO] |  \- com.fasterxml.jackson.module:jackson-module-parameter-names:jar:2.13.3:compile
[INFO] +- org.projectlombok:lombok:jar:1.18.24:provided
[INFO] +- org.springframework.boot:spring-boot-configuration-processor:jar:2.7.1:compile
[INFO] +- org.springframework.cloud:spring-cloud-starter-bootstrap:jar:3.1.4:compile
[INFO] |  \- org.springframework.cloud:spring-cloud-starter:jar:3.1.4:compile
[INFO] |     +- org.springframework.cloud:spring-cloud-context:jar:3.1.4:compile
[INFO] |     |  \- org.springframework.security:spring-security-crypto:jar:5.7.2:compile
[INFO] |     +- org.springframework.cloud:spring-cloud-commons:jar:3.1.4:compile
[INFO] |     \- org.springframework.security:spring-security-rsa:jar:1.0.11.RELEASE:compile
[INFO] |        \- org.bouncycastle:bcpkix-jdk15on:jar:1.69:compile
[INFO] |           +- org.bouncycastle:bcprov-jdk15on:jar:1.69:compile
[INFO] |           \- org.bouncycastle:bcutil-jdk15on:jar:1.69:compile
[INFO] +- org.springframework.boot:spring-boot-starter-actuator:jar:2.7.1:compile
[INFO] |  +- org.springframework.boot:spring-boot-actuator-autoconfigure:jar:2.7.1:compile
[INFO] |  |  \- org.springframework.boot:spring-boot-actuator:jar:2.7.1:compile
[INFO] |  \- io.micrometer:micrometer-core:jar:1.9.1:compile
[INFO] |     +- org.hdrhistogram:HdrHistogram:jar:2.1.12:compile
[INFO] |     \- org.latencyutils:LatencyUtils:jar:2.0.3:runtime
[INFO] \- de.codecentric:spring-boot-admin-starter-client:jar:2.7.3:compile
[INFO]    \- de.codecentric:spring-boot-admin-client:jar:2.7.3:compile

Suggested solutions:

Update dependency version

Thank you very much.

[公告]错误提问模板

模块/组件
eg. XHuiCloud-upms

描述遇到的问题
请清晰简洁的描述遇到的什么问题,以及场景

重现步骤

  1. '...'
  2. '....'
  3. '....'
  4. 错误出现!

预期行为
您觉得预期应该发生的是什么,得到的是什么!

截图
如果可以,也请麻烦带上截图,以更快的帮助问题的解决!

附加
可以是环境等信息
eg. MacOS 、Java8 、 XhuiCloud Version v2.0.0

项目年前左右会恢复维护

(。・_・。)ノI’m sorry~ 最近主要在写区块链智能合约的事情。
在春节前左右会恢复维护

  1. 修复一些存在的BUG
  2. jdk升级至17
  3. 在前端做了个数据驱动表单的组件等等
  4. 完善文档

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.