Package-level declarations

全局异常处理和响应包装

Since

2.4.0

Types

Link copied to clipboard
@ControllerAdvice(annotations = RestController::class)
@Component
open class ApiDeprecatedAdvice : HandlerInterceptor, WebMvcConfigurer
废弃接口通知 注意: 1.
Link copied to clipboard
@ControllerAdvice
open class EncryptResponseAdvice : ResponseBodyAdvice<T>
加密响应体
Link copied to clipboard
@RestControllerAdvice
@ResponseBody
open class ErrorPageAdvice
错误页处理
Link copied to clipboard
@RestControllerAdvice(annotations = IdlerController::class)
open class IdlerControllerAdvice : ResponseBodyAdvice<T>
懒狗controller通知
Link copied to clipboard
@Component
@ControllerAdvice(annotations = RestController::class)
open class MyRequestBodyAdvice : RequestBodyAdvice
RequestBody请求处理
Link copied to clipboard
@Component
@ControllerAdvice(annotations = ResponseBody::class)
open class MyResponseBodyAdvice : ResponseBodyAdvice<T>
返回数据加密