1 Star 0 Fork 5

sheep / kite-core

forked from kite / kite-framework 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
README.md 2.35 KB
一键复制 编辑 原始数据 按行查看 历史
花朝 提交于 2019-07-22 11:09 . :tada:1.0.0.RELEASE

kite

kite.png

kite in spring

  • 封装常用组件和服务
  • 基于 SpringBootSpringCloud 组件拓展, 支持 webwebflux
依赖 版本
Spring Boot 2.1.x
Spring Cloud Greenwich.RELEASE

整体架构

kite.png

kite-core介绍

kite-boot

  • 支持 Spring boot webSpring boot webflux
  • 异步配置。
  • jackson配置。
  • 请求日志打印。
  • url 版本号处理。
  • swagger自动化配置。
  • 统一异常处理,未知异常发送 KiteErrorEvent 事件。

kite-captcha

  • 支持 webfluxserlvet 的验证码。

kite-cloud

  • Feign 自动降级、header 透传
  • 基于okhttp增强,添加请求日志和Header传递。
  • hystrix 熔断器增强,支持 header 透传。

kite-common

  • 常用工具类,基于 Spring-core 扩展,无其他依赖。
  • 基于Snowflake算法的唯一ID生成器
  • 统一消息返回体。
  • Jackson 消息转换,日期和Long默认转换。

kite-dependencies

  • 常用依赖版本管理
  • kite 组件版本管理
  • SpringBootSpringCloud 版本管理

kite-exception

  • 监听 KiteErrorEvent 事件,KiteErrorEvent --> KiteErrorStream
  • 通过 SpringCloudStream 将异常上报至通知中心

kite-generator

  • kite 代码生成
  • 直接生成rest接口

kite-launcher

  • 拓展 SpringApplication
  • 打印启动信息
  • 处理运行环境
  • 默认log4j配置
  • 初始化默认配置项
  • 基于 disruptor 异步日志
  • 修改 SpringBoot 默认banner

kite-rate-limit

  • 支持 Spring boot webSpring boot webflux 限流
  • 支持本地和分布式限流
  • 通过令牌桶模式实现限流
  • 分布式限流默认采用 redis

kite-redis-lock

  • 基于 redis 实现的分布式锁

kite-security

  • 支持基于注解的权限控制

kite-sequence

  • 基于 Snowflake 算法的分布式id生成器
  • 通过 SequenceService 获取唯一id

kite-test

  • 提供 SpringBoot 测试支持。

编译环境

  • jdk8
  • IntelliJ IDEA 2018.3

相关链接

Java
1
https://gitee.com/sheepGitTee/kite-core.git
git@gitee.com:sheepGitTee/kite-core.git
sheepGitTee
kite-core
kite-core
master

搜索帮助