36 Star 208 Fork 100

polaris.wang / spark-platform

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README
Apache-2.0

spark-platform V2.1

star github

作者这两年沉迷旅游、摄影,所以一直在停更......

SPARK-PLATFORM 开发平台 作者:polaris.wang

如果您喜欢,请伸出您的小手,给作者star一下,感谢您的支持 :smile:

Apache cloud版本 boot版本 https://img.shields.io/badge/Nacos-1.3-brightgreen https://img.shields.io/badge/Flowable-6.4.2-brightgreen https://img.shields.io/badge/Mybatis%20Plus-3.3.1-brightgreen

  • 基于 Spring Cloud、Spring Boot、 OAuth2 的RBAC权限管理系统
  • 基于vue-element-template,更简洁的页面,实现的前后端分离交互
  • 微服务和前后端分离架构,客户端和服务端纯Token交互,接口全部使用restful风格
  • 认证服务器与资源服务器分离,方便接入自己的微服务系统
  • 功能模块采用组件插拔方式,使用更简单整洁规范
  • 基于flowable的工作流系统,提供完善基于业务的流程系统
  • 提供配置自定义组件包注解。
  • 提供代码生成器、封装Mybatis plus 查询,提高开发效率
  • 提供微信商城小程序功能,此功能不在master分支展示

如果大家有什么建议或者问题,请在Issues中提交,希望大家一起让这个开源项目变的更好,我的本意是大家一起学习,所以此项目完全开源,完全免费。您的star和建议是作者维护这个项目的最大动力,感谢!

后续更新计划:由于作者精力有限,不会在提供业务代码的更新,会把所有的精力转移到里边的bug修改、底层技术和组件的研究。小程序将会在master分支移除,转移到shop分支,后续也不在提供维护。


2021-11-09 更新日志

  • 升级spring boot和 cloud版本,解决冲突。

  • 添加Sentinel 监控。

  • 对冗杂的jar包进行删除。

  • 优化配置


Spring Cloud版本升级的遇到的问题汇总:

  1. Spring Cloud Netflix 彻底删除掉了除Eureka外的所有组件。

    • 基于 Eureka Client 的 RestTemplate 已支持 TLS 属性
    • netflix组件替代方案
    Netflix 推荐替代品
    Hystrix Sentinel、Resilience4j
    Hystrix Dashboard / Turbine Micrometer + Monitoring System
    Ribbon Spring Cloud Loadbalancer
    Zuul Spring Cloud Gateway
    Archaius Spring Boot外部化配置 + Spring Cloud配置
  2. Bootstrap上下文默认不再启动:
    Spring Cloud容器是靠Bootstrap Context引导上下文来启动的,对应的类是BootstrapApplicationListener。
    解决方案:

    • 设置值spring.cloud.bootstrap.enabled=true或者 spring.config.use-legacy-processing=true即可。注意:这些个属性值必须确保其能放进环境里才能生效。比如靠谱的方式是:系统属性、环境变量、命令行等

    • 引入下边的jar包

        <!--bootstrap 启动器-->
         <dependency>
             <groupId>org.springframework.cloud</groupId>
             <artifactId>spring-cloud-starter-bootstrap</artifactId>
         </dependency>
  3. 移除了Spring Cloud Security:
    其主要代码已经移到了 Spring Cloud Commons下 引入JAR包实例

       <!--security-->
         <dependency>
             <groupId>org.springframework.security</groupId>
             <artifactId>spring-security-config</artifactId>
         </dependency>
         <!-- oauth-->
         <dependency>
             <groupId>org.springframework.security.oauth.boot</groupId>
             <artifactId>spring-security-oauth2-autoconfigure</artifactId>
         </dependency>
  4. Spring Cloud Openfeign

    • 支持在 Spring Cloud CircuitBreakers 中包装 feign 客户端;

    • Spring Cloud OpenFeign 安全部分的代码,从 Spring Cloud Security 移到了 Spring Cloud OpenFeign。

      引入JAR包修改:

      feign.hystrix.FallbackFactory 替换成 org.springframework.cloud.openfeign.FallbackFactory
  5. 增加了 LoadBalancer 统计功能; 添加JAR包:

      <!-- LB 统计 -->
      <dependency>
          <groupId>org.springframework.cloud</groupId>
          <artifactId>spring-cloud-starter-loadbalancer</artifactId>
      </dependency>

文档地址 (补充中)

https://www.kancloud.cn/polaris_wang/spark/1762689

已实现功能

系统管理
用户管理 角色管理 角色管理 菜单管理 部门管理 字典管理 客户端管理
协同管理
代办事项 已办事项 流程设计 流程管理 实例管理
系统监控
系统日志 登陆日志 接口文档 Nacos Admin监控 数据库监控 Minio
扩展功能
微信凭证 行政区域 文件管理 定时任务 代码生成 表单例子

项目地址

平台 spark-platform(后端) spark-admin(前端)
GitHub https://github.com/wangdingfeng/spark-platform https://github.com/wangdingfeng/spark-admin
Gitee https://gitee.com/dreamfeng/spark-platform https://gitee.com/dreamfeng/spark-admin

小程序地址:https://gitee.com/dreamfeng/wx-spark-shop

演示地址

演示地址:http://www.sparkplatform.cn/ 暂停

备用演示地址: http://admin.xiapeiyi.com/ 不允许对里边的数据进行操作,感谢

演示环境工作流账号密码:

账号 密码 权限
admin 123456 除删除外所有的权限
zuzhang 123456 工作流权限
zhubian1 123456 工作流权限
zhubian2 123456 工作流权限

平台账号密码

平台 账号 密码
Admin监控 spark spark
数据库监控 spark spark
Nacos
Minio

版本说明

依赖 版本
Spring Boot 2.5.6
Spring Cloud 2020.0.4
Nacos 2.0.0
Flowable 6.4.2
Mybatis Plus 3.3.1
Spring Boot Admin 2.2.3

模块说明

spark-platform 
├── spark-auth -- 授权服务 oauth2
└── spark-common -- 系统公共模块 
     ├── spark-common-base -- 基本公共类
     ├── spark-common-config -- 公共配置类
     ├── spark-common-feigh -- 公共feigh类
     ├── spark-common-datasource -- 数据权限
     ├── spark-common-security -- 安全工具类
     └── spark-common-utils -- 工具类
     └── spark-common-log -- 日志记录
├── spark-gateway -- Spring Cloud Gateway网关
├── spark-eureka -- Spring Cloud eureka注册中心
├── spark-control -- Spring Boot Admin监控
└── spark-admin -- 通用用户权限管理模块
     └── spark-admin-api -- 通用用户权限管理系统公共api模块
     └── spark-admin-biz -- 通用用户权限管理系统业务处理模块
└── spark-flowable -- 通用工作流模块
     └── spark-flowable-api -- 通用工作流模块公共api模块
     └── spark-flowable-biz -- 通用工作流模块业务处理模块
├── spark-cms -- 内容管理平台模块
├── spark-tx-manager -- 分布式事务模块
├── spark-quartz -- 定时任务模块
└── spark-file -- 文件模块
     └── spark-file-api -- 文件模块公共api模块
     └── spark-file-biz -- 文件模块业务处理模块

注意:

  1. 流程测试:
  • 这里是列表文本使用admin 账号添加文章,发布,之后,角色是组长的都会接到待办消息。
  • 流程流转到主编审核,使用主编1和主编2审核,入口从待办任务中进入。
  • 系统判断节点为自动判断,逻辑为 主编审核节点只有当两个主编都审核通过,则为审核流程通过,如果其中有人拒绝,退回到发起人修改,也就是admin
  • 发起人admin重新修改数据 提交给组长角色审核,或者关闭当前的流程。
  1. 流程测试图 输入图片说明

平台截图 首页 用户管理 角色管理 菜单管理 部门管理 字典管理 客户端管理 文件管理 定时任务调度 输入图片说明 输入图片说明 输入图片说明 输入图片说明 输入图片说明 输入图片说明 输入图片说明 输入图片说明 输入图片说明 输入图片说明 nacos

** :heart: 贡献**

后续开始招收志同道合的仙友一起致力于维护SPARK项目功能的开发和完善,有意愿的小伙伴请私信我。感谢大家的支持!

Apache License Version 2.0, January 2004 http://www.apache.org/licenses/ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION 1. Definitions. "License" shall mean the terms and conditions for use, reproduction, and distribution as defined by Sections 1 through 9 of this document. "Licensor" shall mean the copyright owner or entity authorized by the copyright owner that is granting the License. "Legal Entity" shall mean the union of the acting entity and all other entities that control, are controlled by, or are under common control with that entity. For the purposes of this definition, "control" means (i) the power, direct or indirect, to cause the direction or management of such entity, whether by contract or otherwise, or (ii) ownership of fifty percent (50%) or more of the outstanding shares, or (iii) beneficial ownership of such entity. "You" (or "Your") shall mean an individual or Legal Entity exercising permissions granted by this License. "Source" form shall mean the preferred form for making modifications, including but not limited to software source code, documentation source, and configuration files. "Object" form shall mean any form resulting from mechanical transformation or translation of a Source form, including but not limited to compiled object code, generated documentation, and conversions to other media types. "Work" shall mean the work of authorship, whether in Source or Object form, made available under the License, as indicated by a copyright notice that is included in or attached to the work (an example is provided in the Appendix below). "Derivative Works" shall mean any work, whether in Source or Object form, that is based on (or derived from) the Work and for which the editorial revisions, annotations, elaborations, or other modifications represent, as a whole, an original work of authorship. For the purposes of this License, Derivative Works shall not include works that remain separable from, or merely link (or bind by name) to the interfaces of, the Work and Derivative Works thereof. "Contribution" shall mean any work of authorship, including the original version of the Work and any modifications or additions to that Work or Derivative Works thereof, that is intentionally submitted to Licensor for inclusion in the Work by the copyright owner or by an individual or Legal Entity authorized to submit on behalf of the copyright owner. For the purposes of this definition, "submitted" means any form of electronic, verbal, or written communication sent to the Licensor or its representatives, including but not limited to communication on electronic mailing lists, source code control systems, and issue tracking systems that are managed by, or on behalf of, the Licensor for the purpose of discussing and improving the Work, but excluding communication that is conspicuously marked or otherwise designated in writing by the copyright owner as "Not a Contribution." "Contributor" shall mean Licensor and any individual or Legal Entity on behalf of whom a Contribution has been received by Licensor and subsequently incorporated within the Work. 2. Grant of Copyright License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to reproduce, prepare Derivative Works of, publicly display, publicly perform, sublicense, and distribute the Work and such Derivative Works in Source or Object form. 3. Grant of Patent License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable (except as stated in this section) patent license to make, have made, use, offer to sell, sell, import, and otherwise transfer the Work, where such license applies only to those patent claims licensable by such Contributor that are necessarily infringed by their Contribution(s) alone or by combination of their Contribution(s) with the Work to which such Contribution(s) was submitted. If You institute patent litigation against any entity (including a cross-claim or counterclaim in a lawsuit) alleging that the Work or a Contribution incorporated within the Work constitutes direct or contributory patent infringement, then any patent licenses granted to You under this License for that Work shall terminate as of the date such litigation is filed. 4. Redistribution. You may reproduce and distribute copies of the Work or Derivative Works thereof in any medium, with or without modifications, and in Source or Object form, provided that You meet the following conditions: (a) You must give any other recipients of the Work or Derivative Works a copy of this License; and (b) You must cause any modified files to carry prominent notices stating that You changed the files; and (c) You must retain, in the Source form of any Derivative Works that You distribute, all copyright, patent, trademark, and attribution notices from the Source form of the Work, excluding those notices that do not pertain to any part of the Derivative Works; and (d) If the Work includes a "NOTICE" text file as part of its distribution, then any Derivative Works that You distribute must include a readable copy of the attribution notices contained within such NOTICE file, excluding those notices that do not pertain to any part of the Derivative Works, in at least one of the following places: within a NOTICE text file distributed as part of the Derivative Works; within the Source form or documentation, if provided along with the Derivative Works; or, within a display generated by the Derivative Works, if and wherever such third-party notices normally appear. The contents of the NOTICE file are for informational purposes only and do not modify the License. You may add Your own attribution notices within Derivative Works that You distribute, alongside or as an addendum to the NOTICE text from the Work, provided that such additional attribution notices cannot be construed as modifying the License. You may add Your own copyright statement to Your modifications and may provide additional or different license terms and conditions for use, reproduction, or distribution of Your modifications, or for any such Derivative Works as a whole, provided Your use, reproduction, and distribution of the Work otherwise complies with the conditions stated in this License. 5. Submission of Contributions. Unless You explicitly state otherwise, any Contribution intentionally submitted for inclusion in the Work by You to the Licensor shall be under the terms and conditions of this License, without any additional terms or conditions. Notwithstanding the above, nothing herein shall supersede or modify the terms of any separate license agreement you may have executed with Licensor regarding such Contributions. 6. Trademarks. This License does not grant permission to use the trade names, trademarks, service marks, or product names of the Licensor, except as required for reasonable and customary use in describing the origin of the Work and reproducing the content of the NOTICE file. 7. Disclaimer of Warranty. Unless required by applicable law or agreed to in writing, Licensor provides the Work (and each Contributor provides its Contributions) on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied, including, without limitation, any warranties or conditions of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A PARTICULAR PURPOSE. You are solely responsible for determining the appropriateness of using or redistributing the Work and assume any risks associated with Your exercise of permissions under this License. 8. Limitation of Liability. In no event and under no legal theory, whether in tort (including negligence), contract, or otherwise, unless required by applicable law (such as deliberate and grossly negligent acts) or agreed to in writing, shall any Contributor be liable to You for damages, including any direct, indirect, special, incidental, or consequential damages of any character arising as a result of this License or out of the use or inability to use the Work (including but not limited to damages for loss of goodwill, work stoppage, computer failure or malfunction, or any and all other commercial damages or losses), even if such Contributor has been advised of the possibility of such damages. 9. Accepting Warranty or Additional Liability. While redistributing the Work or Derivative Works thereof, You may choose to offer, and charge a fee for, acceptance of support, warranty, indemnity, or other liability obligations and/or rights consistent with this License. However, in accepting such obligations, You may act only on Your own behalf and on Your sole responsibility, not on behalf of any other Contributor, and only if You agree to indemnify, defend, and hold each Contributor harmless for any liability incurred by, or claims asserted against, such Contributor by reason of your accepting any such warranty or additional liability. END OF TERMS AND CONDITIONS APPENDIX: How to apply the Apache License to your work. To apply the Apache License to your work, attach the following boilerplate notice, with the fields enclosed by brackets "[]" replaced with your own identifying information. (Don't include the brackets!) The text should be enclosed in the appropriate comment syntax for the file format. We also recommend that a file or class name and description of purpose be included on the same "printed page" as the copyright notice for easier identification within third-party archives. Copyright (c) 2020 polaris.wang Authors. All Rights Reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

简介

🚀Spark 开发平台基于 Spring Cloud Hoxton 、Spring Boot 2.3、 OAuth2 、Security、Nacos、flowable、vue-element前后端分离的脚手架平台。平台包含系统管理(组织机构、角色用户、菜单及按钮授权、数据权限、文件管理、定时任务管理、日志管理),协同管理(待办、已办任务、流程设计、流程管理),代码生成器,分布式事务,完善的系统监控。功能模块采用插拔方式,方便根据自己的业务引入需要的模块。 展开 收起
Apache-2.0
取消

发行版 (1)

全部

贡献者

全部

近期动态

加载更多
不能加载更多了
Java
1
https://gitee.com/dreamfeng/spark-platform.git
git@gitee.com:dreamfeng/spark-platform.git
dreamfeng
spark-platform
spark-platform
master

搜索帮助