6 Commits

Author SHA1 Message Date
3cda514cfc feat(context): 添加协程环境中的 MDC 上下文传播支持- 新增 CoroutineMdcWebFilter Bean,用于在协程环境中传播 MDC 上下文信息 2025-07-17 10:30:40 +00:00
5f3ae7a5cd refactor(context): 将 ForgeContextAutoConfiguration 拆分为多个自动配置类
- 新增 ContextCommonAutoConfiguration、ContextProcessorAutoConfiguration、ContextReactorAutoConfiguration、ContextServletAutoConfiguration、ContextWebFluxAutoConfiguration、ContextFeignAutoConfiguration、ContextTaskDecoratorAutoConfiguration 和 ContextWebClientAutoConfiguration
- 删除 ForgeContextAutoConfiguration 类
- 更新 AutoConfiguration.imports 文件,添加新的自动配置类
2025-06-24 22:41:03 +08:00
a6706fd3c4 feat(context): 添加默认值序列化器和上下文持有者
- 新增 JacksonValueSerializer Bean,作为默认的值序列化器
- 新增 ContextHolder Bean,作为默认的上下文持有者
-两个 Bean 都在缺少其他实现时条件性创建
2025-06-24 17:05:05 +08:00
f6794fd14f refactor(context): 重构上下文过滤器配置
- 为 ContextWebFilter 和 ContextServletFilter 添加 ContextHolder 参数
- 优化了上下文过滤器的创建逻辑,提高灵活性和可扩展性
2025-06-22 20:02:09 +08:00
7a6c371aa3 feat(context): 重构上下文管理并添加序列化支持
- 新增 ContextHolder 类,替换原有的 StringContextHolder 对象
- 实现上下文值的序列化和反序列化
- 更新相关过滤器和装饰器以使用新的 ContextHolder- 添加获取指定类型值的方法- 实现 Context 接口的扩展方法,支持操作符重载
2025-06-22 20:01:12 +08:00
ebe801f6bb feat(context): Core functions of context propagation
- Added FieldDef class to define field properties
- Create Scope enumeration class, define the context storage location
- Implement AbstractContext and Context interfaces
- Add the ContextFieldContributor interface and the FieldRegistry interface
- Implement context processors: HeaderProcessor, GeneratorProcessor, MdcProcessor, ReactorProcessor
- Add context filters: ContextServletFilter, ContextWebFilter
- Implement the automatic configuration class ForgeContextAutoConfiguration
- Add StringContextHolder
- Implement the default field registry DefaultFieldRegistry
2025-06-05 16:06:44 +08:00