Skip to content

Latest commit

 

History

History
7 lines (6 loc) · 233 Bytes

File metadata and controls

7 lines (6 loc) · 233 Bytes

Springboot对Controller层方法进行统一异常处理

概述

使用AOP技术,封装Controller请求中的异常处理;

规范

  1. 函数返回值,统一为 ResultEntity
  2. 只对Controller层进行AOP拦截处理;