Skip to content

Latest commit

 

History

History
11 lines (7 loc) · 479 Bytes

README.md

File metadata and controls

11 lines (7 loc) · 479 Bytes

Spring Boot API Response

This is an example project that demonstrates how to unify API response structure using ResponseBodyAdvice and ExceptionHandler in SpringBoot.

Spring Boot API 返回结构封装示例。

  • ResponseBodyAdvice 统一包装接口返回值。
  • ExceptionHandler 统一处理异常。

相关文档可参考 如何封装接口返回结构?—— SpringBoot 实践