Skip to content

refactor: extract OpenBlog-common module, unify HTTP response format - #16

Open
yyyCode wants to merge 9 commits into
masterfrom
dev
Open

refactor: extract OpenBlog-common module, unify HTTP response format#16
yyyCode wants to merge 9 commits into
masterfrom
dev

Conversation

@yyyCode

@yyyCode yyyCode commented Aug 8, 2026

Copy link
Copy Markdown
Owner

Summary

  • 新增 OpenBlog-common 模块:统一响应 ApiResponse / PageResultBizExceptionTraceIdTreeUtils,经 Spring Boot 自动装配注册异常处理(GlobalExceptionHandler / SecurityExceptionHandler)
  • OpenBlog-business 依赖 common 模块并移除本地拷贝(import 零改动,包名不变);启动类显式 @ComponentScan 排除 com.yqz.openblog.common.*,补回默认过滤避免 framework @AutoConfiguration 重复注册
  • OpenBlog-email 的 HTTP 接口切换为 ApiResponse 包装,Dubbo RPC 契约不变
  • 更新 README 模块表与规格/计划文档

Test Plan

  • mvn clean package -DskipTests(全量 reactor 构建)
  • mvn test(业务模块 context 启动测试)
  • 历史重建后树与验证通过版本字节级一致(git diff fe9030a e7cc38b 为空)

yyyCode and others added 9 commits August 9, 2026 01:59
Co-Authored-By: Claude <noreply@anthropic.com>
Co-Authored-By: Claude <noreply@anthropic.com>
Co-Authored-By: Claude <noreply@anthropic.com>
… from scan

Co-Authored-By: Claude <noreply@anthropic.com>
- @ConditionalOnClass: bean method-level string form, not class-level
- ComponentScan example: add back TypeExcludeFilter/AutoConfigurationExcludeFilter
- ConditionalOnWebApplication: one class-level guard, not two
- remove duplicate '依赖接线' heading

Co-Authored-By: Claude <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant