Skip to content

An example project to unify API response in SpringBoot.

Notifications You must be signed in to change notification settings

ginnsx/spring-boot-api-response

Repository files navigation

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 实践

About

An example project to unify API response in SpringBoot.

Resources

Stars

Watchers

Forks

Languages