8 Star 35 Fork 17

马格纳斯1220 / daffodil-cloud

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

Daffodil-cloud(达佛迪尔)基础管理平台微服务版免费开源

使用Java语言编程的代码简洁,通俗易读的微服务框架的基础项目脚手架。使用Maven搭建的SpringCloud工程项目,支持多数据源注解式动态切换,前端使用vue3渐进式框架搭建的漂亮大方的管理平台界面。 本人出生地水仙花之都【漳州】Daffodil英文翻译意思是水仙花,本人也比较佛系且Daffodil音含 [ 达佛 ]。

1. 介绍

达佛迪尔基础管理平台(英文名:Daffodil-cloud)乃一款基于SpringCloud微服务架构体系精心构建的旗舰级管理系统,其显著特色在于代码设计的精炼雅致、阅读理解上的轻松易懂,以及界面呈现的美学质感。该平台深蕴技术底蕴,支持多数据源动态切换的灵活机制,兼容ShardingSphere主从读写分离配置等高级特性,从而实现了数据处理效能与系统稳定性的卓越平衡。

在技术栈层面,达佛迪尔基础管理平台采用了业界领先的技术框架和工具组件,包括但不限于Java后端领域的SpringCloud(2021.0.1+版本),以其强大而敏捷的SpingBoot(2.7.4+版本)为开发引擎;倚仗大名鼎鼎的Shardingsphere(5.1.1+版本)对数据库层进行智能分片与治理;采用阿里巴巴开源的Nacos(2.0.4+版本)作为服务注册与发现的核心中枢,以实现服务治理的智能化和自动化;同时,它还融合了Redis(6.2+版本)这一高性能缓存系统,以优化数据访问速度,提升系统响应效率;而在数据库支撑方面,无论是稳健可靠的MySQL(5.7+版本)还是与时俱进的MySQL(8.0+版本),均能与其无缝对接。前端采用了Vue3框架,集成了ElementUI-Plus+2.2.9的UI库。

2. 演示地址

系统基础

  • 基础管理:系统首页、个人中心、主题皮肤
  • 系统管理:用户管理、角色管理(权限管理)、部门管理、岗位管理、职级管理、群组管理、通知管理
  • 数据管理:菜单管理、字典管理、标签管理、区划管理、缓存管理、敏感词管理、应用管理、文件管理、日期管理、资源管理
  • 审计管理:操作日志、登录日志、在线用户
  • 系统设置:登录设置
  • 监控管理:缓存监控、服务监控
  • 开发管理:元数据管理、库表管理(代码生成)

基础功能

  • 系统首页:作为用户进入系统的首界面,系统首页集成了关键业务指标、最新公告通知、快捷操作入口等多种信息展示模块,旨在提供直观、便捷的一站式工作台体验。
  • 个人中心:用户可在个人中心完成个人信息维护、修改密码、查看权限分配、个性化设置(如头像、昵称、主题皮肤等)以及消息提醒等功能,确保每位用户可以根据自身需求定制专属的工作环境。
  • 主题皮肤:支持多种风格的主题切换,满足不同用户的视觉喜好,使用户在长时间使用系统的过程中能够保持愉悦的心情和高效的工作状态。

系统管理

  • 用户管理:涵盖了用户账号的增删改查、角色分配、账户锁定解锁及密码重置等一系列操作,实现对系统内所有用户的有效管理和控制。
  • 角色管理(权限管理):通过定义不同的角色,并为每个角色分配相应的菜单权限和操作权限,实现了基于角色的访问控制(RBAC),保证了系统的安全性与合规性。
  • 部门管理、岗位管理、职级管理:构建组织架构体系,明确各层级之间的隶属关系和上下级结构,方便进行人员配置、职责划分以及绩效考核等工作。
  • 群组管理:支持创建和管理多个业务相关的用户群体,便于实现团队协作、权限分组、消息通知等功能。
  • 通知管理:发布系统内部重要通知、公告或消息推送,以确保信息传达及时准确,提高工作效率。

数据管理

  • 菜单管理:用于搭建系统菜单结构,包括菜单的新增、编辑、删除以及排序调整,直接影响到用户界面的功能布局和导航路径。
  • 字典管理:维护系统中各类枚举类型、固定选项的数据字典,为前端页面提供下拉选择、标签分类等服务,提升数据录入规范性和查询效率。
  • 标签管理:对特定对象进行分类标记,实现内容的快速检索和归类,例如文章标签、客户标签等。
  • 区划管理:对行政区域、地理位置等信息进行管理,适用于需要按地域划分业务场景的应用。
  • 日期管理:针对特殊日期设定,比如节假日安排、活动期限等进行统一管理,便于系统自动执行相关业务规则。

审计管理

  • 操作日志:记录系统内的每一次关键操作行为,包括操作人、操作时间、操作对象、操作类型等信息,以便于追溯问题根源和审计追踪。
  • 登录日志:记录用户的登录、登出事件及其相关信息,对于异常登录情况可迅速发现并采取应对措施。
  • 在线用户:实时监控当前系统中的在线用户数量及状态,方便管理员了解系统负载情况和用户活跃度。

系统设置

  • 登录设置:包括但不限于验证码开关、登录失败策略、会话超时时间等登录相关的参数配置,以优化用户体验和保障系统安全。
  • 邮件设置:提供邮件服务器配置、邮件模板管理、邮件发送测试等功能,支持系统通过邮件方式向用户发送验证码、通知、报告等各种信息。

3. 基础模块

  • daffodil-cloud-utils:作为项目的基础工具库,封装了一系列通用、便捷的工具类和方法,包括但不限于数据处理、日期时间操作、文件读写、加密解密等实用功能,旨在提升开发效率并保证代码的一致性与规范性。

  • daffodil-cloud-code:作为底层核心代码库,基于强大的Spring Data JPA技术栈进行了深度封装和优化,实现数据库操作的CRUD(创建、读取、更新和删除)、复杂查询以及事务管理等,包含了项目的核心业务逻辑和关键算法实现,是最基础且重要的业务组件,为其他微服务提供强有力的技术支撑,确保系统的稳定性和高效运行。

  • daffodil-cloud-common:作为基础平台服务公共代码库,提供应用系统基础用户体系服务内容,通过统一管理和复用这些公共资源,降低模块间的耦合度,提高项目的可维护性和扩展性。

  • daffodil-cloud-framework:作为整个项目的基础设施框架代码库,集成了SpringCloud微服务架构相关的基础配置和服务治理功能。它定义了微服务的基本结构和启动模板,并抽象出一套适用于本平台的标准开发框架,简化后续微服务的开发流程。

  • daffodil-cloud-system:作为基础服务平台微服务,承载了系统管理、权限分配、资源配置等一系列基础服务功能,是整个达佛迪尔基础管理平台的核心组成部分,确保平台日常运维及管理工作的顺利进行。

  • daffodil-cloud-auth:作为统一授权认证微服务,实现了用户的身份验证、权限校验以及基于角色的访问控制(RBAC)等功能,保障了平台内部各微服务间的安全通信与资源访问控制。

  • daffodil-cloud-gateway:作为网关路由微服务,扮演着系统对外统一入口的角色,负责请求路由、负载均衡、API鉴权、限流熔断等多种策略实施。通过该微服务,能够有效实现对所有微服务集群的集中化管理和安全防护,优化系统性能,提升用户体验。

4. 前端模块(分离单独仓库)

  • daffodil-cloud-ui:达佛迪尔基础平台前端UI1.0.0工程(该前端使用的element-plus版本是^1.1.0-beta.9已停止更新维护)
  • daffodil-cloud-ui2:达佛迪尔基础平台前端UI2.0.0工程(该前端使用的element-plus版本是^2.2.9持续更新)

5. 其它模块(分离单独仓库)

6. 环境要求

序号 组件名称 版本要求 必要 描述
1 JDK 1.8+ 平台构建在Java语言之基石上,因此对JDK版本的要求不低于1.8+,以为系统提供坚实的语言环境支撑。
2 MySql 5.7+或8.0+ 平台所采用的数据库方案兼容MySQL 5.7和8.0两个主流版本,无论是单机部署还是主从集群模式,均可依据实际业务规模与需求进行灵活配置与高效运行。
3 Redis 3.2+或6.2+ 平台选用Redis作为高速缓存层,推荐使用性能更优的6.2+版本,同时兼顾向下兼容性,支持3.2+以前版本。无论是在单机环境或是集群架构中,Redis都能发挥其卓越的数据缓存与快速响应能力。
4 Nacos 2.0.0+ 高可用的服务治理体系核心组件Nacos,要求版本在2.0.0以上,不论是单一节点部署还是集群化部署,均能确保服务的动态注册、发现以及配置管理等功能高效稳定运作。
5 Nginx 1.20+ Nginx作为一款享誉业界的高性能HTTP和反向代理服务器,在生产环境中常用于优化流量分发与负载均衡。但在开发阶段,其部署并非绝对必需,可视具体需求而定。

7. 框架说明

7.1. 数据源

兼容了多种主流的关系型数据库,如MySql、Oracle与SqlServer等,并默认采用了广受青睐的开源MySql数据库作为数据源。当面临切换至其他数据库的实际需求时,只需对相应应用工程的Maven依赖项进行精细化调整,即更改对应的数据源驱动配置。以下内容同样以极具人气的MySql数据库为例展开说明,尽管语境如此,但其普适性适用于任何所支持的数据库类型,体现了项目的灵活性和扩展性。

单例数据源配置

spring:
datasource: 
  url: jdbc:mysql://127.0.0.1:3306/daffodil-cloud?useUnicode=true&characterEncoding=UTF-8&serverTimezone=GMT%2B8&useSSL=false&useInformationSchema=true&nullCatalogMeansCurrent=true
  username: ENC(sXbr2rQZNY4dI0N1Zn6Muw==)
  password: ENC(VyPdE3xFgic+7ObADKITEw==)
  driver-class-name: com.mysql.cj.jdbc.Driver
jpa: 
  # 数据库方言
  database-platform: org.hibernate.dialect.MySQL5InnoDBDialect
  # 是否显示sql语句
  show-sql: true
  hibernate: 
    # 自动更新数据库表
    ddl-auto: update
  
# MySql主从读写分离配置
shardingsphere: 
  enabled: false

MySql主从读写分离配置

spring: 
#MySql主从读写分离配置
shardingsphere: 
  enabled: true
  props: 
    # 是否打印sql语句
    sql-show: true
  # 数据源配置
  datasource: 
    names: master,slave0
    # 主库(又称逻辑库)自定义名称
    master: 
      type: com.zaxxer.hikari.HikariDataSource
      driver-class-name: com.mysql.cj.jdbc.Driver
      jdbc-url: jdbc:mysql://127.0.0.1:3306/daffodil-cloud?useUnicode=true&characterEncoding=UTF-8&serverTimezone=GMT%2B8&useSSL=false&useInformationSchema=true&nullCatalogMeansCurrent=true
      username: root
      password: 123456
    # 从库(又称查询库)自定义名称
    slave0: 
      type: com.zaxxer.hikari.HikariDataSource
      driver-class-name: com.mysql.cj.jdbc.Driver
      jdbc-url: jdbc:mysql://127.0.0.1:3307/daffodil-cloud?useUnicode=true&characterEncoding=UTF-8&serverTimezone=GMT%2B8&useSSL=false&useInformationSchema=true&nullCatalogMeansCurrent=true
      username: root
      password: 123456
  schema: 
    name: daffodil-cloud
  rules: 
    # 读写分离规则配置
    readwrite-splitting: 
      load-balancers: 
        # 负载均衡算法名称自定义
        datasource-balancer: 
          # 负载均衡算法类型 ROUND_ROBIN=轮询算法 RANDOM=随机访问算法 WEIGHT=权重访问算法
          type: ROUND_ROBIN
      data-sources: 
        # 主库(又称逻辑库)自定义名称
        master: 
          # STATIC=静态读写分离算法 DYNAMIC=动态读写分离算法
          type: STATIC
          props: 
            write-data-source-name: master
            read-data-source-names: master,slave0
          # 负载均衡算法名称
          load-balancer-name: datasource-balancer

数据加密配置

为了确保配置中心中敏感数据的安全性,防范潜在的信息泄露风险,可以采用spring-boot-jasypt这一先进的加密工具进行深度的数据保护措施。具体来说,对于数据库登录凭证这类高敏感信息,我们可以通过jasypt的加密机制对其进行艺术性的封装,以"ENC(密文内容)"的形态进行优雅而隐秘的存储。这样,既确保了关键数据在静默中得到了坚若磐石般的防护,又兼顾了系统的流畅运行与逻辑合理性,彰显出技术与安全并重,实用与美学共生的语言运用风格。

#配置数据加解密
jasypt: 
  encryptor:
    password: daffodil-cloud
    algorithm: PBEWithMD5AndDES
    key-obtention-iterations: 1000
    pool-size: 1
    provider-name: SunJCE
    salt-generator-classname: org.jasypt.salt.RandomSaltGenerator
    iv-generator-classname: org.jasypt.iv.NoIvGenerator
    string-output-type: base64

为了开发者方便本项目也提供JUI操作界面,下载插件工具

https://gitee.com/weijiang_admin/daffodil-cloud/tree/master/daffodil-cloud-doc/src/jasypt/daffodil-jasypt-boot.jar

在window的环境下打开CMD命令,输入以下命令Enter即可展示JUI界面。

java -jar daffodil-jasypt-boot.jar

7.2. Redis缓存

#redis缓存配置 
spring: 
  redis:
    ###  redis单机配置  ###
    # Redis数据库索引(默认为0)
    database: 0
    # Redis服务器地址
    host: 192.168.1.26
    # Redis服务器连接端口
    port: 6379
    ###  redis集群配置  ###
    #cluster:
    #  nodes: 192.168.20.26:7001,192.168.20.27:7001,192.168.20.28:7001,192.168.20.26:7002,192.168.20.27:7002,192.168.20.28:7002
    # Redis服务器连接密码(默认为空)
    password: 123456
    # 连接超时时间(毫秒)
    timeout: 10000ms
    lettuce:
      pool:
        # 连接池最大连接数
        max-active: 200
        # 连接池最大阻塞等待时间(使用负值表示没有限制)
        max-wait: -1ms
        # 连接池中的最大空闲连接
        max-idle: 10
        # 连接池中的最小空闲连接
        min-idle: 0

7.3. 应用安全

应用安全配置相对内容比较多,但其实也很简单,包括操作日志、链路追踪、演示模式、登录验证码(图片验证/动态验证码)、扫码登录等,详见示例代码所述:

7.3.1. 操作日志
daffodil: 
  operlog: 
    # 是否开启记录操作日志
    enable: true
7.3.2. 链路追踪
daffodil: 
  trace: 
    # 是否开启微服务请求日志追踪TraceId
    enable: true
7.3.3. 演示模式
daffodil: 
  demo: 
    # 是否演示模式
    enable: false
    # 演示模式下,不允许的操作,用逗号分割 
    # OTHER=其他 INSERT=新增 UPDATE=修改 DELETE=删除 GRANT=授权 EXPORT=导出 IMPORT=导入 FORCE=强退 GENCODE=生成代码 CLEAN=清空 TRASH=作废 UPLOAD=上传 DOWNLOAD=下载
    not-allowed: OTHER,DELETE,IMPORT,CLEAN,TRASH,UPLOAD
7.3.4. 请求源安全
daffodil:
  security: 
    referer: 
      #允许访问来源的Host,*为任何访问来源
      allowed-origin: >
        *
      #忽略访问来源拦截的URL
      ignore-urls: >
        /api-test/**
7.3.5. 授权令牌安全
daffodil:
  security:
    access-token: 
      #是否开启登录IP过滤,校验请求地址和授权令牌的登录地址是否一致
      enable-filter-login-ip: false
      #忽略Token认证拦截的URL
      ignore-urls: >
        /api-auth/token/sign,
        /api-auth/token/refresh,
        /api-auth/platform/prepar,
        /api-auth/kaptcha/*,
        /api-auth/forget/password/*,
        /api-auth/config/login,
        /api-auth/oauth/token,
        /api-auth/oauth/refresh,
        /api-auth/scan/authorize,
        /api-auth/scan/login,
        /api-test/**
7.3.6. 数据签名安全
daffodil:
  security:
    #参数签名
    signature: 
      #是否开启
      enable: false
      #签名有效时间 默认5秒 单位秒
      duration: 60
      #签名算法
      method: SM3
      #忽略签名验证的Url
      ignore-urls: >
        /api-system/config/edit,
        /api-auth/oauth/token,
        /api-auth/oauth/refresh,
        /api-auth/oauth/user,
        /api-test/**
7.3.7. 跨域请求安全
daffodil:
  security:
    cros: 
      allowed-credentials: false
      #线上最好写真实域名地址,逗号分隔
      allowed-origin: >
        *
      allowed-method: >
        GET,
        POST,
        OPTIONS
      allowed-header: >
        *
      allowed-urls: >
        /api-test/**
7.3.8. WEB跨站漏洞
daffodil:
  security:
    #xss漏洞渗透攻击
    xss-attack: 
      #是否开启xss渗透拦截
      enable: true
      #定义需要渗透匹配验证的正则表达式
      regexs: >
        <(.*?)(/)?>,
        <(no)?script.*?(>)?.*?</(no)?script>,
        (expression|eval|execute)\((.*?)\),
        javascript:|typescript:|vbscript:|view-source:,
        \s*(oncontrolselect|oncopy|oncut|ondataavailable|ondatasetchanged|ondatasetcomplete|ondblclick|ondeactivate|ondrag|ondragend|ondragenter|ondragleave|ondragover|ondragstart|ondrop|onerror=|onerroupdate|onfilterchange|onfinish|onfocus|onfocusin|onfocusout|onhelp|onkeydown|onkeypress|onkeyup|onlayoutcomplete|onload|onlosecapture|onmousedown|onmouseenter|onmouseleave|onmousemove|onmousout|onmouseover|onmouseup|onmousewheel|onmove|onmoveend|onmovestart|onabort|onactivate|onafterprint|onafterupdate|onbefore|onbeforeactivate|onbeforecopy|onbeforecut|onbeforedeactivate|onbeforeeditocus|onbeforepaste|onbeforeprint|onbeforeunload|onbeforeupdate|onblur|onbounce|oncellchange|onchange|onclick|oncontextmenu|onpaste|onpropertychange|onreadystatechange|onreset|onresize|onresizend|onresizestart|onrowenter|onrowexit|onrowsdelete|onrowsinserted|onscroll|onselect|onselectionchange|onselectstart|onstart|onstop|onsubmit|onunload)+\s*=+,
        window\.location|window\.|\.location|document\.cookie|document\.|alert(\s?)\(|window\.open(\s?)\(
      #忽略xss渗透验证的url
      ignore-urls: >
        /api-test/**
7.3.9. SQL注入漏洞
daffodil:
  security:
    #SQL注入攻击
    sql-attack: 
      #是否开启sql注入攻击拦截
      enable: true
      #定义不允许sql注入的正则表达式
      regexs: >
        select(\s)+(.*?)(\s)+from,
        insert(\s)+into,
        update(\s)+(.*?)(\s)+set,
        delete(\s)+from,
        truncate(\s)+table,
        create(\s)+(database|event|function|index|logfile|procedure|server|table|tablespace|trigger|user|view),
        drop(\s)+(database|event|function|index|procedure|server|table|tablespace|trigger|user|view),
        alter(\s)+(database|event|function|instance|logfile|procedure|server|table|tablespace|user|view),
        show(\s)+(database|event|function|index|logfile|procedure|server|table|tablespace|trigger|user|view|binlog|character|collation|columns|open|privileges),
        grant(\s)+(select|insert|update|delete|index|create|show|execute|alter|all|for)(\s)+on(.*?)(\s)+to
      #忽略sql注入攻击验证的url
      ignore-urls: >
        /api-test/**

7.4. 网关路由

网关路由断言配置其实就是API请求的路由规则,如果你的业务需求还想额外更多的配置详见官网的Gateway路由断言章节。基础管理平台本着一切从简的思路原则,解放开发者让开发者更简单容易上手,路由配置简单化,新增的项目微服务API以此类推配置,网关路由配置参考示例:

#系统路由配置
spring: 
  cloud: 
    gateway: 
      routes: 
      #授权认证微服务所有API
      - id: daffodil-cloud-auth
        uri: lb://daffodil-cloud-auth
        predicates: 
        - Path=/api-auth/**
      #基础服务微服务所有API
      - id: daffodil-cloud-system
        uri: lb://daffodil-cloud-system
        predicates: 
        - Path=/api-system/**
      #ITSM服务微服务所有API
      - id: daffodil-cloud-itsm
        uri: lb://daffodil-cloud-itsm
        predicates: 
        - Path=/api-itsm/**

7.5. 程序注解

程序注解主要介绍基础管理平台自定义的注解使用与其注解的作用。包括数据权限、QL语义注解、多数据源、路由权限、操作日志等相关注解。

7.5.1. 数据权限 @DataScope

数据权限 @DataScope 其作用于Service层方法,是基于系统的部门组织结构的数据范围权限注解,如果要依赖于它那边目标的数据实体字段必须包含deptId字段。参见SysUser的实现。@DataScope(deptAlias = "d", userAlias = "u") deptAlias=部门表的别名,userAlias=用户目标实体的别名。

@Override
@DataScope(deptAlias = "d", userAlias = "u")
public List<SysUser> selectUserList(Query<SysUser> query, @Nullable SysUser user) {
    
    StringBuffer hql = new StringBuffer();
    List<Object> paras = new ArrayList<Object>();
    SysUser sysUser = query.getEntity();
    ...(略)...
}
7.5.2. HQL语义注解 @Hql

HQL语义注解 @Hql 主要帮助解放开发者在写HQL语句时简化各种实体表业务查询的条件判断处理,配合HqlUtils.createHql(...)实现。

/**
* -模糊匹配 col like '%char%'
*/
LIKE("like"), 
/**
* -模糊匹配 col like 'char%'
*/
LLIKE("like"), 
/**
* -模糊匹配 col like '%char'
*/
RLIKE("like"), 
/**
* -相等匹配 col = 'char'
*/
EQ("="), 
/**
* -不等匹配 col != 'char'
*/
NEQ("!="), 
/**
* -小于等于匹配 col <= 123
*/
LEQ("<="), 
/**
* -小于匹配 col < 123
*/
LT("<"), 
/**
* -大于等于匹配 col >= 123
*/
REQ(">="), 
/**
* -大于匹配 col > 123
*/
RT(">"), 
/**
* -包含匹配 col in('char1','char2')
*/
IN("in"), 
/**
* -空字符(无匹配意义)
*/
NONE("");

@Hql(type = Logical.LIKE)
private String rankName;

@Hql(type = Logical.EQ)
private String status;
-------------------------------------------------------------------------------------
@Override
public List<SysRank> selectRankList(Query<SysRank> query) {
    StringBuffer hql = new StringBuffer("from SysRank where 1=1 ");
    List<Object> paras = new ArrayList<Object>();
    HqlUtils.createHql(hql, paras, query);
    //等价于hql = from SysRank where 1=1 and rankName like ? and status = ?
    return jpaDao.search(hql.toString(), paras, SysRank.class, query.getPage());
}
7.5.3. 多数据源 @TargetDataSource

多数据源 @TargetDataSource 其作于用Service层方法,告知本方法内的操作使用哪个数据源,默认是primary数据库数据源。同MyBatils-plus的@DS注解用法一致。

@Override
@TargetDataSource("slave")
public List<SysGroup> selectGroupList(Query<SysGroup> query) {
    StringBuffer hql = new StringBuffer("from SysGroup where 1=1 ");
    List<Object> paras = new ArrayList<Object>();
    HqlUtils.createHql(hql, paras, query);
    return jpaDao.search(hql.toString(), paras, SysGroup.class, query.getPage());
}
7.5.4. 路由权限 @AuthPermission

路由权限 @AuthPermission 继承于@Permission 其标注在@RestController层的方法名上,主要标识该请求方法需要用户授权才能请求访问。@AuthPermission("system:user:add") value = system:area:add 权限标识码,这个权限标识码将对应系统的菜单管理-权限标识一致。权限码定义规则一般是module1:module2:operate。假如模块超过2层以上则取最后两层即可让代码更简洁直观。

@ApiOperation("新增用户")
@ApiImplicitParam(name = HttpHeaders.AUTHORIZATION, value = "登录授权令牌 Bearer token", paramType = "header", required = true)
@AuthPermission("system:user:add")
@OperLog(title = "用户管理", type = Business.INSERT)
@PostMapping("/user/add")
public Mono<JsonResult> add(@Validated @RequestBody SysUser user, @ApiIgnore ServerHttpRequest request) {
    userService.insertUser(user);
    return Mono.just(JsonResult.success());
}
7.5.5. 开放权限 @OpenPermission

开放权限 @OpenPermission 继承于@Permission,其标注在@RestController层的方法名上,主要标识该请求方法是开放授权资源,类似于资源开放平台开放的API,一般用于应用管理的授权接口使用。同@AuthPermission相似。

7.5.6. 操作日志 @OperLog

操作日志 @OperLog 其标注在@RestController层的方法名上,主要标识该请求操作方法是否需求记录操作日志。@OperLog (title = "标签管理", type = Business.UPDATE)

7.5.7. 操作业务 @OperBusiness

操作业务 @OperBusiness 其标注在 @RestController层的方法名上的@OperLog注解中,主要标识该请求操作业务名称以及业务标识。@OperLog (title = "用户管理", business = @OperBusiness(name = "重置", label = "RESET", remark = "用户密码重置"))

7.5.8. 操作客户端 @OperClient

操作业务 @OperClient 其标注在 @RestController层的方法名上的@OperLog注解中,主要标识该请求操作客户端名称以及客户端标识。@OperLog (title = "用户管理", type = Business.UPDATE, client = @OperClient(name = "桌面端", label = "DESKTOP"))

7.6. 持久层框架

7.6.1. SpringDataJPA

本框架在遵循Spring Data JPA规范并依托Hibernate作为具体实现技术的基础上,进一步定制封装了一系列高效实用的持久层组件,即JpaDao和JdbcDao。 JpaDao通过深度整合EntityManager机制,实现了对实体对象的全面管理,并严格遵循HQL(Hibernate Query Language)的语法规则进行查询操作。 JdbcDao同样充分利用了EntityManager的强大功能,但其主要面向原生SQL查询场景,旨在提供更灵活、底层的数据访问能力,完全符合SQL的标准语法规范。 通过这两种持久层Dao的设计与实现,本框架有效提升了开发效率及数据访问性能,同时兼顾了领域驱动设计原则和实际业务需求的高度契合。

@Autowired
private JpaDao<String> jpaDao;

String hql = "from SysUser where loginName = ? ";
...(略)...
SysUser sysUser = jpaDao.find(hql, paras, SysUser.class);

@Autowired
private JdbcDao jdbcDao;

String sql = "select browser as name, count(*) as value from sys_login_info where login_name=? group by browser";
...(略)...
List<Map<String, String>> list = jdbcDao.search(sql, paras);

框架也集成了底层的基础数据操作功能,包括但不限于创建、读取、更新及删除等核心CRUD方法的实现。

public interface IAccountService extends IBaseEntityService<Long, Account> {

}

@Service
public class AccountServiceImpl extends BaseEntityServiceImpl<Long, Account> implements IAccountService {

}

public interface IBaseEntityService<ID, T> {
    /**
     * -分页查询实体信息集合
     * @param query
     * @return
     */
    public List<T> selectEntityList(Query<T> query);
    /**
     * -通过实体ID查询职级信息
     * @param id
     * @return
     */
    public T selectEntityById(ID id);
    /**
     * -批量删除实体信息
     * @param ids
     */
    public void deleteEntityByIds(ID[] ids);
    /**
     * -新增保存实体信息
     * @param entity
     */
    public void insertEntity(T entity);
    /**
     * -修改保存实体信息
     * @param entity
     */
    public void updateEntity(T entity);
}
7.6.2. Mybatis

本框架在设计与实现过程中,充分考虑了业界广泛采用的持久层框架——Mybatis的兼容性与整合能力。    

Mybatis-plus作为Mybatis的优秀扩展,通过引入强大的CRUD操作、条件构造器、分页插件等功能,极大地提升了数据库操作的便利性和可维护性。在此框架中,用户不仅可以继续沿用Mybatis-plus的这些高效工具,而且还能结合框架本身的特色功能,实现业务逻辑的深度定制与灵活扩展。因此,特别优化了框架内核,确保能够无缝对接并充分利用Mybatis-plus的各项先进特性。

在实际开发过程中,若项目中同时采用了Spring Data JPA与Mybatis这两种持久层框架,值得注意的是,实体类对象的注解映射存在一定的差异性。具体来说,由于两种框架遵循不同的ORM规范,因此其各自的注解特性有所不同。

然而,有趣的一点是,实体类可以兼容并蓄地使用来自两个框架的注解进行联合标注,这意味着开发者可以在同一份代码基础上,依据业务需求无缝切换或融合运用这两种持久化解决方案,实现对数据访问层的高效、灵活管理与操作。

Spring Data JPA 框架的实体对象注解使用的是:
@Entity、@Table(name = "tb_account")、@Id、@Column(name = "id")
Mybatis-plus框架的实体对象注解使用的是:
@TableName(value = "tb_account")、@TableId(value = "id", type = IdType.AUTO)、@TableField("user_id")


@Data
@EqualsAndHashCode(callSuper = true)
@Entity
@Table(name = "tb_account")
@TableName(value = "tb_account")
public class Account extends BaseEntity<Long> {

    /** 用户ID */
    @Id
    @JsonSerialize(using = ToStringSerializer.class)
    @GeneratedValue(generator = "snowflake")
    @GenericGenerator(name = "snowflake", strategy = "com.xxxxx.SnowflakeIdentifierGenerator")
    @TableId(value = "id", type = IdType.AUTO)
    @Column(name = "id")
    private Long id;

    /** 用户ID 绑定系统用户ID */
    @TableField("user_id")
    @Column(name = "user_id", length = 32)
    @Hql(type = Logical.EQ)
    private String userId;
    ...(略)...
}

7.7. WEB框架模型

本框架同时兼容WebFlux与Servlet这两种迥异的Web应用程序模型。在决定采用WebFlux架构模型时,建议在控制器层(Controller层)的设计中,遵循Reactive编程范式,令Controller类继承自ReactiveBaseController,以实现非阻塞、异步和响应式处理能力。

反之,若选择传统的Servlet架构模型构建Web应用,那么在控制器层的实现上,应遵循Servlet规范,确保Controller类继承自ServletBaseController,从而充分利用基于请求/响应生命周期管理的同步编程模式,以及Servlet容器提供的丰富功能集。

@Api(value = "日期管理", tags = "日期管理")
@RestController
@RequestMapping(SystemConstant.API_CONTENT_PATH)
public class SysDaysController extends ReactiveBaseController {

@Api(value = "摊户管理", tags = "摊户管理")
@RestController
@RequestMapping(DjxxConstant.API_CONTENT_PATH + "/account")
public class AccountController extends ServletBaseController {

8. 开发规约

在基于本框架进行软件开发的过程中,遵循以下编码规范至关重要:

1、为确保数据持久化的一致性和完整性,实体类的命名必须继承自基础实体类BaseEntity,并且每个对应数据库表的实体均需设定一个主键ID属性。

2、在设计领域接口层(interface)时,应采用“IXxxxxService”形式的命名规范,其中“Xxxxx”代表与之对应的业务逻辑实体。

3、对于实体服务实现层的命名,应当遵循“XxxxxServiceImpl”的命名约定,以明确表示该类是其对应接口的具体实现。

4、在实体类参数验证环节,建议采用注解方式进行校验处理,如利用Java Validation API中的@Validated注解进行约束声明和执行。

5、在控制器层的设计中,@RestController类宜扩展自ReactiveBaseController或ServletBaseController,以便更好地封装和复用基础控制逻辑。

6、针对Webflux响应式编程模型下的Controller类,请求方法(Method)应保留ServerHttpRequest参数,以适应异步非阻塞处理的需求。

7、为了便于API文档的自动化生成与管理,在控制器层务必运用Swagger相关注解进行详尽的接口说明。同时,遵循RESTful原则,查询类操作应采用HTTP GET方法,而增加、删除、修改等操作则使用POST方法。

9. 相关下载

达佛迪尔基础平台相关数据库脚本以及相关配置文件下载地址:https://gitee.com/weijiang_admin/daffodil-cloud/tree/master/daffodil-cloud-doc

10. 微信公众号

输入图片说明
【达佛迪尔】微信公众号

11. 质量评分

输入图片说明

18. 系统风采(基于前端UI2.0.0工程截图)

输入图片说明 输入图片说明 输入图片说明 输入图片说明 输入图片说明 输入图片说明 输入图片说明 输入图片说明 输入图片说明 输入图片说明 输入图片说明 输入图片说明 输入图片说明 输入图片说明 输入图片说明 输入图片说明 输入图片说明 输入图片说明 输入图片说明

12. 特别感谢

特别感谢:@lyt-top前端框架支持https://gitee.com/lyt-top/vue-next-admin

23. 码云特技

  1. 码云官方博客 blog.gitee.com
  2. 你可以 https://gitee.com/explore 这个地址来了解码云上的优秀开源项目
  3. GVP 全称是码云最有价值开源项目,是码云综合评定出的优秀开源项目
  4. 码云官方提供的使用手册 https://gitee.com/help
  5. 码云封面人物是一档用来展示码云会员风采的栏目 https://gitee.com/gitee-stars/
GNU AFFERO GENERAL PUBLIC LICENSE Version 3, 19 November 2007 Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/> Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed. Preamble The GNU Affero General Public License is a free, copyleft license for software and other kinds of works, specifically designed to ensure cooperation with the community in the case of network server software. The licenses for most software and other practical works are designed to take away your freedom to share and change the works. By contrast, our General Public Licenses are intended to guarantee your freedom to share and change all versions of a program--to make sure it remains free software for all its users. When we speak of free software, we are referring to freedom, not price. Our General Public Licenses are designed to make sure that you have the freedom to distribute copies of free software (and charge for them if you wish), that you receive source code or can get it if you want it, that you can change the software or use pieces of it in new free programs, and that you know you can do these things. Developers that use our General Public Licenses protect your rights with two steps: (1) assert copyright on the software, and (2) offer you this License which gives you legal permission to copy, distribute and/or modify the software. A secondary benefit of defending all users' freedom is that improvements made in alternate versions of the program, if they receive widespread use, become available for other developers to incorporate. Many developers of free software are heartened and encouraged by the resulting cooperation. However, in the case of software used on network servers, this result may fail to come about. The GNU General Public License permits making a modified version and letting the public access it on a server without ever releasing its source code to the public. The GNU Affero General Public License is designed specifically to ensure that, in such cases, the modified source code becomes available to the community. It requires the operator of a network server to provide the source code of the modified version running there to the users of that server. Therefore, public use of a modified version, on a publicly accessible server, gives the public access to the source code of the modified version. An older license, called the Affero General Public License and published by Affero, was designed to accomplish similar goals. This is a different license, not a version of the Affero GPL, but Affero has released a new version of the Affero GPL which permits relicensing under this license. The precise terms and conditions for copying, distribution and modification follow. TERMS AND CONDITIONS 0. Definitions. "This License" refers to version 3 of the GNU Affero General Public License. "Copyright" also means copyright-like laws that apply to other kinds of works, such as semiconductor masks. "The Program" refers to any copyrightable work licensed under this License. Each licensee is addressed as "you". "Licensees" and "recipients" may be individuals or organizations. To "modify" a work means to copy from or adapt all or part of the work in a fashion requiring copyright permission, other than the making of an exact copy. The resulting work is called a "modified version" of the earlier work or a work "based on" the earlier work. A "covered work" means either the unmodified Program or a work based on the Program. To "propagate" a work means to do anything with it that, without permission, would make you directly or secondarily liable for infringement under applicable copyright law, except executing it on a computer or modifying a private copy. Propagation includes copying, distribution (with or without modification), making available to the public, and in some countries other activities as well. To "convey" a work means any kind of propagation that enables other parties to make or receive copies. Mere interaction with a user through a computer network, with no transfer of a copy, is not conveying. An interactive user interface displays "Appropriate Legal Notices" to the extent that it includes a convenient and prominently visible feature that (1) displays an appropriate copyright notice, and (2) tells the user that there is no warranty for the work (except to the extent that warranties are provided), that licensees may convey the work under this License, and how to view a copy of this License. If the interface presents a list of user commands or options, such as a menu, a prominent item in the list meets this criterion. 1. Source Code. The "source code" for a work means the preferred form of the work for making modifications to it. "Object code" means any non-source form of a work. A "Standard Interface" means an interface that either is an official standard defined by a recognized standards body, or, in the case of interfaces specified for a particular programming language, one that is widely used among developers working in that language. The "System Libraries" of an executable work include anything, other than the work as a whole, that (a) is included in the normal form of packaging a Major Component, but which is not part of that Major Component, and (b) serves only to enable use of the work with that Major Component, or to implement a Standard Interface for which an implementation is available to the public in source code form. A "Major Component", in this context, means a major essential component (kernel, window system, and so on) of the specific operating system (if any) on which the executable work runs, or a compiler used to produce the work, or an object code interpreter used to run it. The "Corresponding Source" for a work in object code form means all the source code needed to generate, install, and (for an executable work) run the object code and to modify the work, including scripts to control those activities. However, it does not include the work's System Libraries, or general-purpose tools or generally available free programs which are used unmodified in performing those activities but which are not part of the work. For example, Corresponding Source includes interface definition files associated with source files for the work, and the source code for shared libraries and dynamically linked subprograms that the work is specifically designed to require, such as by intimate data communication or control flow between those subprograms and other parts of the work. The Corresponding Source need not include anything that users can regenerate automatically from other parts of the Corresponding Source. The Corresponding Source for a work in source code form is that same work. 2. Basic Permissions. All rights granted under this License are granted for the term of copyright on the Program, and are irrevocable provided the stated conditions are met. This License explicitly affirms your unlimited permission to run the unmodified Program. The output from running a covered work is covered by this License only if the output, given its content, constitutes a covered work. This License acknowledges your rights of fair use or other equivalent, as provided by copyright law. You may make, run and propagate covered works that you do not convey, without conditions so long as your license otherwise remains in force. You may convey covered works to others for the sole purpose of having them make modifications exclusively for you, or provide you with facilities for running those works, provided that you comply with the terms of this License in conveying all material for which you do not control copyright. Those thus making or running the covered works for you must do so exclusively on your behalf, under your direction and control, on terms that prohibit them from making any copies of your copyrighted material outside their relationship with you. Conveying under any other circumstances is permitted solely under the conditions stated below. Sublicensing is not allowed; section 10 makes it unnecessary. 3. Protecting Users' Legal Rights From Anti-Circumvention Law. No covered work shall be deemed part of an effective technological measure under any applicable law fulfilling obligations under article 11 of the WIPO copyright treaty adopted on 20 December 1996, or similar laws prohibiting or restricting circumvention of such measures. When you convey a covered work, you waive any legal power to forbid circumvention of technological measures to the extent such circumvention is effected by exercising rights under this License with respect to the covered work, and you disclaim any intention to limit operation or modification of the work as a means of enforcing, against the work's users, your or third parties' legal rights to forbid circumvention of technological measures. 4. Conveying Verbatim Copies. You may convey verbatim copies of the Program's source code as you receive it, in any medium, provided that you conspicuously and appropriately publish on each copy an appropriate copyright notice; keep intact all notices stating that this License and any non-permissive terms added in accord with section 7 apply to the code; keep intact all notices of the absence of any warranty; and give all recipients a copy of this License along with the Program. You may charge any price or no price for each copy that you convey, and you may offer support or warranty protection for a fee. 5. Conveying Modified Source Versions. You may convey a work based on the Program, or the modifications to produce it from the Program, in the form of source code under the terms of section 4, provided that you also meet all of these conditions: a) The work must carry prominent notices stating that you modified it, and giving a relevant date. b) The work must carry prominent notices stating that it is released under this License and any conditions added under section 7. This requirement modifies the requirement in section 4 to "keep intact all notices". c) You must license the entire work, as a whole, under this License to anyone who comes into possession of a copy. This License will therefore apply, along with any applicable section 7 additional terms, to the whole of the work, and all its parts, regardless of how they are packaged. This License gives no permission to license the work in any other way, but it does not invalidate such permission if you have separately received it. d) If the work has interactive user interfaces, each must display Appropriate Legal Notices; however, if the Program has interactive interfaces that do not display Appropriate Legal Notices, your work need not make them do so. A compilation of a covered work with other separate and independent works, which are not by their nature extensions of the covered work, and which are not combined with it such as to form a larger program, in or on a volume of a storage or distribution medium, is called an "aggregate" if the compilation and its resulting copyright are not used to limit the access or legal rights of the compilation's users beyond what the individual works permit. Inclusion of a covered work in an aggregate does not cause this License to apply to the other parts of the aggregate. 6. Conveying Non-Source Forms. You may convey a covered work in object code form under the terms of sections 4 and 5, provided that you also convey the machine-readable Corresponding Source under the terms of this License, in one of these ways: a) Convey the object code in, or embodied in, a physical product (including a physical distribution medium), accompanied by the Corresponding Source fixed on a durable physical medium customarily used for software interchange. b) Convey the object code in, or embodied in, a physical product (including a physical distribution medium), accompanied by a written offer, valid for at least three years and valid for as long as you offer spare parts or customer support for that product model, to give anyone who possesses the object code either (1) a copy of the Corresponding Source for all the software in the product that is covered by this License, on a durable physical medium customarily used for software interchange, for a price no more than your reasonable cost of physically performing this conveying of source, or (2) access to copy the Corresponding Source from a network server at no charge. c) Convey individual copies of the object code with a copy of the written offer to provide the Corresponding Source. This alternative is allowed only occasionally and noncommercially, and only if you received the object code with such an offer, in accord with subsection 6b. d) Convey the object code by offering access from a designated place (gratis or for a charge), and offer equivalent access to the Corresponding Source in the same way through the same place at no further charge. You need not require recipients to copy the Corresponding Source along with the object code. If the place to copy the object code is a network server, the Corresponding Source may be on a different server (operated by you or a third party) that supports equivalent copying facilities, provided you maintain clear directions next to the object code saying where to find the Corresponding Source. Regardless of what server hosts the Corresponding Source, you remain obligated to ensure that it is available for as long as needed to satisfy these requirements. e) Convey the object code using peer-to-peer transmission, provided you inform other peers where the object code and Corresponding Source of the work are being offered to the general public at no charge under subsection 6d. A separable portion of the object code, whose source code is excluded from the Corresponding Source as a System Library, need not be included in conveying the object code work. A "User Product" is either (1) a "consumer product", which means any tangible personal property which is normally used for personal, family, or household purposes, or (2) anything designed or sold for incorporation into a dwelling. In determining whether a product is a consumer product, doubtful cases shall be resolved in favor of coverage. For a particular product received by a particular user, "normally used" refers to a typical or common use of that class of product, regardless of the status of the particular user or of the way in which the particular user actually uses, or expects or is expected to use, the product. A product is a consumer product regardless of whether the product has substantial commercial, industrial or non-consumer uses, unless such uses represent the only significant mode of use of the product. "Installation Information" for a User Product means any methods, procedures, authorization keys, or other information required to install and execute modified versions of a covered work in that User Product from a modified version of its Corresponding Source. The information must suffice to ensure that the continued functioning of the modified object code is in no case prevented or interfered with solely because modification has been made. If you convey an object code work under this section in, or with, or specifically for use in, a User Product, and the conveying occurs as part of a transaction in which the right of possession and use of the User Product is transferred to the recipient in perpetuity or for a fixed term (regardless of how the transaction is characterized), the Corresponding Source conveyed under this section must be accompanied by the Installation Information. But this requirement does not apply if neither you nor any third party retains the ability to install modified object code on the User Product (for example, the work has been installed in ROM). The requirement to provide Installation Information does not include a requirement to continue to provide support service, warranty, or updates for a work that has been modified or installed by the recipient, or for the User Product in which it has been modified or installed. Access to a network may be denied when the modification itself materially and adversely affects the operation of the network or violates the rules and protocols for communication across the network. Corresponding Source conveyed, and Installation Information provided, in accord with this section must be in a format that is publicly documented (and with an implementation available to the public in source code form), and must require no special password or key for unpacking, reading or copying. 7. Additional Terms. "Additional permissions" are terms that supplement the terms of this License by making exceptions from one or more of its conditions. Additional permissions that are applicable to the entire Program shall be treated as though they were included in this License, to the extent that they are valid under applicable law. If additional permissions apply only to part of the Program, that part may be used separately under those permissions, but the entire Program remains governed by this License without regard to the additional permissions. When you convey a copy of a covered work, you may at your option remove any additional permissions from that copy, or from any part of it. (Additional permissions may be written to require their own removal in certain cases when you modify the work.) You may place additional permissions on material, added by you to a covered work, for which you have or can give appropriate copyright permission. Notwithstanding any other provision of this License, for material you add to a covered work, you may (if authorized by the copyright holders of that material) supplement the terms of this License with terms: a) Disclaiming warranty or limiting liability differently from the terms of sections 15 and 16 of this License; or b) Requiring preservation of specified reasonable legal notices or author attributions in that material or in the Appropriate Legal Notices displayed by works containing it; or c) Prohibiting misrepresentation of the origin of that material, or requiring that modified versions of such material be marked in reasonable ways as different from the original version; or d) Limiting the use for publicity purposes of names of licensors or authors of the material; or e) Declining to grant rights under trademark law for use of some trade names, trademarks, or service marks; or f) Requiring indemnification of licensors and authors of that material by anyone who conveys the material (or modified versions of it) with contractual assumptions of liability to the recipient, for any liability that these contractual assumptions directly impose on those licensors and authors. All other non-permissive additional terms are considered "further restrictions" within the meaning of section 10. If the Program as you received it, or any part of it, contains a notice stating that it is governed by this License along with a term that is a further restriction, you may remove that term. If a license document contains a further restriction but permits relicensing or conveying under this License, you may add to a covered work material governed by the terms of that license document, provided that the further restriction does not survive such relicensing or conveying. If you add terms to a covered work in accord with this section, you must place, in the relevant source files, a statement of the additional terms that apply to those files, or a notice indicating where to find the applicable terms. Additional terms, permissive or non-permissive, may be stated in the form of a separately written license, or stated as exceptions; the above requirements apply either way. 8. Termination. You may not propagate or modify a covered work except as expressly provided under this License. Any attempt otherwise to propagate or modify it is void, and will automatically terminate your rights under this License (including any patent licenses granted under the third paragraph of section 11). However, if you cease all violation of this License, then your license from a particular copyright holder is reinstated (a) provisionally, unless and until the copyright holder explicitly and finally terminates your license, and (b) permanently, if the copyright holder fails to notify you of the violation by some reasonable means prior to 60 days after the cessation. Moreover, your license from a particular copyright holder is reinstated permanently if the copyright holder notifies you of the violation by some reasonable means, this is the first time you have received notice of violation of this License (for any work) from that copyright holder, and you cure the violation prior to 30 days after your receipt of the notice. Termination of your rights under this section does not terminate the licenses of parties who have received copies or rights from you under this License. If your rights have been terminated and not permanently reinstated, you do not qualify to receive new licenses for the same material under section 10. 9. Acceptance Not Required for Having Copies. You are not required to accept this License in order to receive or run a copy of the Program. Ancillary propagation of a covered work occurring solely as a consequence of using peer-to-peer transmission to receive a copy likewise does not require acceptance. However, nothing other than this License grants you permission to propagate or modify any covered work. These actions infringe copyright if you do not accept this License. Therefore, by modifying or propagating a covered work, you indicate your acceptance of this License to do so. 10. Automatic Licensing of Downstream Recipients. Each time you convey a covered work, the recipient automatically receives a license from the original licensors, to run, modify and propagate that work, subject to this License. You are not responsible for enforcing compliance by third parties with this License. An "entity transaction" is a transaction transferring control of an organization, or substantially all assets of one, or subdividing an organization, or merging organizations. If propagation of a covered work results from an entity transaction, each party to that transaction who receives a copy of the work also receives whatever licenses to the work the party's predecessor in interest had or could give under the previous paragraph, plus a right to possession of the Corresponding Source of the work from the predecessor in interest, if the predecessor has it or can get it with reasonable efforts. You may not impose any further restrictions on the exercise of the rights granted or affirmed under this License. For example, you may not impose a license fee, royalty, or other charge for exercise of rights granted under this License, and you may not initiate litigation (including a cross-claim or counterclaim in a lawsuit) alleging that any patent claim is infringed by making, using, selling, offering for sale, or importing the Program or any portion of it. 11. Patents. A "contributor" is a copyright holder who authorizes use under this License of the Program or a work on which the Program is based. The work thus licensed is called the contributor's "contributor version". A contributor's "essential patent claims" are all patent claims owned or controlled by the contributor, whether already acquired or hereafter acquired, that would be infringed by some manner, permitted by this License, of making, using, or selling its contributor version, but do not include claims that would be infringed only as a consequence of further modification of the contributor version. For purposes of this definition, "control" includes the right to grant patent sublicenses in a manner consistent with the requirements of this License. Each contributor grants you a non-exclusive, worldwide, royalty-free patent license under the contributor's essential patent claims, to make, use, sell, offer for sale, import and otherwise run, modify and propagate the contents of its contributor version. In the following three paragraphs, a "patent license" is any express agreement or commitment, however denominated, not to enforce a patent (such as an express permission to practice a patent or covenant not to sue for patent infringement). To "grant" such a patent license to a party means to make such an agreement or commitment not to enforce a patent against the party. If you convey a covered work, knowingly relying on a patent license, and the Corresponding Source of the work is not available for anyone to copy, free of charge and under the terms of this License, through a publicly available network server or other readily accessible means, then you must either (1) cause the Corresponding Source to be so available, or (2) arrange to deprive yourself of the benefit of the patent license for this particular work, or (3) arrange, in a manner consistent with the requirements of this License, to extend the patent license to downstream recipients. "Knowingly relying" means you have actual knowledge that, but for the patent license, your conveying the covered work in a country, or your recipient's use of the covered work in a country, would infringe one or more identifiable patents in that country that you have reason to believe are valid. If, pursuant to or in connection with a single transaction or arrangement, you convey, or propagate by procuring conveyance of, a covered work, and grant a patent license to some of the parties receiving the covered work authorizing them to use, propagate, modify or convey a specific copy of the covered work, then the patent license you grant is automatically extended to all recipients of the covered work and works based on it. A patent license is "discriminatory" if it does not include within the scope of its coverage, prohibits the exercise of, or is conditioned on the non-exercise of one or more of the rights that are specifically granted under this License. You may not convey a covered work if you are a party to an arrangement with a third party that is in the business of distributing software, under which you make payment to the third party based on the extent of your activity of conveying the work, and under which the third party grants, to any of the parties who would receive the covered work from you, a discriminatory patent license (a) in connection with copies of the covered work conveyed by you (or copies made from those copies), or (b) primarily for and in connection with specific products or compilations that contain the covered work, unless you entered into that arrangement, or that patent license was granted, prior to 28 March 2007. Nothing in this License shall be construed as excluding or limiting any implied license or other defenses to infringement that may otherwise be available to you under applicable patent law. 12. No Surrender of Others' Freedom. If conditions are imposed on you (whether by court order, agreement or otherwise) that contradict the conditions of this License, they do not excuse you from the conditions of this License. If you cannot convey a covered work so as to satisfy simultaneously your obligations under this License and any other pertinent obligations, then as a consequence you may not convey it at all. For example, if you agree to terms that obligate you to collect a royalty for further conveying from those to whom you convey the Program, the only way you could satisfy both those terms and this License would be to refrain entirely from conveying the Program. 13. Remote Network Interaction; Use with the GNU General Public License. Notwithstanding any other provision of this License, if you modify the Program, your modified version must prominently offer all users interacting with it remotely through a computer network (if your version supports such interaction) an opportunity to receive the Corresponding Source of your version by providing access to the Corresponding Source from a network server at no charge, through some standard or customary means of facilitating copying of software. This Corresponding Source shall include the Corresponding Source for any work covered by version 3 of the GNU General Public License that is incorporated pursuant to the following paragraph. Notwithstanding any other provision of this License, you have permission to link or combine any covered work with a work licensed under version 3 of the GNU General Public License into a single combined work, and to convey the resulting work. The terms of this License will continue to apply to the part which is the covered work, but the work with which it is combined will remain governed by version 3 of the GNU General Public License. 14. Revised Versions of this License. The Free Software Foundation may publish revised and/or new versions of the GNU Affero General Public License from time to time. Such new versions will be similar in spirit to the present version, but may differ in detail to address new problems or concerns. Each version is given a distinguishing version number. If the Program specifies that a certain numbered version of the GNU Affero General Public License "or any later version" applies to it, you have the option of following the terms and conditions either of that numbered version or of any later version published by the Free Software Foundation. If the Program does not specify a version number of the GNU Affero General Public License, you may choose any version ever published by the Free Software Foundation. If the Program specifies that a proxy can decide which future versions of the GNU Affero General Public License can be used, that proxy's public statement of acceptance of a version permanently authorizes you to choose that version for the Program. Later license versions may give you additional or different permissions. However, no additional obligations are imposed on any author or copyright holder as a result of your choosing to follow a later version. 15. Disclaimer of Warranty. THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION. 16. Limitation of Liability. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. 17. Interpretation of Sections 15 and 16. If the disclaimer of warranty and limitation of liability provided above cannot be given local legal effect according to their terms, reviewing courts shall apply local law that most closely approximates an absolute waiver of all civil liability in connection with the Program, unless a warranty or assumption of liability accompanies a copy of the Program in return for a fee. END OF TERMS AND CONDITIONS How to Apply These Terms to Your New Programs If you develop a new program, and you want it to be of the greatest possible use to the public, the best way to achieve this is to make it free software which everyone can redistribute and change under these terms. To do so, attach the following notices to the program. It is safest to attach them to the start of each source file to most effectively state the exclusion of warranty; and each file should have at least the "copyright" line and a pointer to where the full notice is found. <one line to give the program's name and a brief idea of what it does.> Copyright (C) <year> <name of author> This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more details. You should have received a copy of the GNU Affero General Public License along with this program. If not, see <http://www.gnu.org/licenses/>. Also add information on how to contact you by electronic and paper mail. If your software can interact with users remotely through a computer network, you should also make sure that it provides a way for users to get its source. For example, if your program is a web application, its interface could display a "Source" link that leads users to an archive of the code. There are many ways you could offer source, and different solutions will be better for different programs; see section 13 for the specific requirements. You should also get your employer (if you work as a programmer) or school, if any, to sign a "copyright disclaimer" for the program, if necessary. For more information on this, and how to apply and follow the GNU AGPL, see <http://www.gnu.org/licenses/>.

简介

一个代码简单、易读、界面美观、支持多数据源动态切,换基于SpringCloud的后台管理系统的maven项目(微服务) 展开 收起
Java 等 2 种语言
AGPL-3.0
取消

发行版

暂无发行版

贡献者

全部

近期动态

加载更多
不能加载更多了
Java
1
https://gitee.com/weijiang_admin/daffodil-cloud.git
git@gitee.com:weijiang_admin/daffodil-cloud.git
weijiang_admin
daffodil-cloud
daffodil-cloud
master

搜索帮助