# kite-framework **Repository Path**: css.v/kite-framework ## Basic Information - **Project Name**: kite-framework - **Description**: SpringCloud 微服务开发组件扩展 - **Primary Language**: Java - **License**: Apache-2.0 - **Default Branch**: master - **Homepage**: https://iiifi.com - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 5 - **Created**: 2021-02-06 - **Last Updated**: 2021-02-06 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README ## kite ![kite.png](docs/imgs/kite.png) ## kite in spring - 封装常用组件和服务 - 基于 `SpringBoot` 和 `SpringCloud` 组件拓展, 支持 `web` 和 `webflux`。 | 依赖 | 版本 | | ------------ | ----------------- | | Spring Boot | 2.2.x | | Spring Cloud | Hoxton.RELEASE | ## 整体架构 ![kite.png](docs/imgs/kite-framework.png) ## kite-core介绍 ### kite-actuator - 用于扩展更多端点,便于在 admin 中进行监控。 - druid 端点 - feign 端点 ### kite-boot - 支持 `Spring boot web` 和 `Spring boot webflux`。 - 异步配置。 - jackson配置。 - 请求日志打印。 - url 版本号处理。 - swagger自动化配置。 - 统一异常处理,未知异常发送 KiteErrorEvent 事件。 ### kite-captcha - 支持 `webflux` 和 `serlvet` 的验证码。 ### kite-cloud - Feign 自动降级、header 透传 - 基于okhttp增强,添加请求日志和Header传递。 - Sentinel 熔断器增强,进行Fallback统一处理。 ### kite-common - 常用工具类封装。 - 统一消息返回体。 - Jackson 消息转换,日期和Long默认转换。 ### kite-configuration - kite 通用配置 - 支持加载默认配置 - 支持自定义配置 ### kite-data-mybatis - 支持 `mapper` 动态配置。 - 默认开启 `druid` 连接池监控。 - 数据库通过字段封装 `model` 基类。 - 默认开启 `mybatisplus` 逻辑删除。 - 默认支持 `mybatisplus` 自动填充。 - dev、test 环境开启sql执行效率分析。 ### kite-data-redis - `RedisService` redis常用工具类。 - 通过 `ProtoStuff` 进行序列化。 - 调整 `key` 默认序列化方式。 - `CacheService` 缓存常用操作。 - `ObjectCacheService` 支持 Lambda。 ### kite-dependencies - 常用依赖版本管理 - `kite` 组件版本管理 - `SpringBoot` 和 `SpringCloud` 版本管理 ### kite-alarm - 监听 `KiteErrorEvent` 事件,KiteErrorEvent --> KiteErrorStream - 通过 `SpringCloudStream` 将异常上报至通知中心 ### kite-generator - kite 代码生成 - 直接生成rest接口 ### kite-launcher - 拓展 `SpringApplication` - 打印启动信息 - 处理运行环境 - 默认log4j配置 - 初始化默认配置项 - 基于 disruptor 异步日志 - 修改 `SpringBoot` 默认banner ### kite-rate-limit - 支持 `Spring boot web` 和 `Spring boot webflux` 限流 - 支持本地和分布式限流 - 通过令牌桶模式实现限流 - 分布式限流默认采用 `redis` ### kite-ribbon - 支持灰度发布 - 增强对本地联调的支持 - 支持消费服务按照ip 或者 ip 段设置 ### kite-redis-lock - 基于 `redis` 实现的分布式锁 ### kite-security - 支持基于注解的权限控制 ### kite-sequence - 基于 `Snowflake` 算法的分布式id生成器 - 通过 `IdGeneratorService` 获取唯一id ### kite-test - 提供 `SpringBoot` 测试支持。 ## 编译环境 - `jdk8` - `IntelliJ IDEA 2019.1` ## 相关链接 - kite 官网:[https://iiifi.com/kite](https://iiifi.com/kite) - kite group:[https://gitee.com/killi](https://gitee.com/killi) - kite-core 源码:[https://gitee.com/killi/kite-core](https://gitee.com/killi/kite-core)