@ControllerAdvice @Order(value=2147483647) public class RequestBodyEnhancerAdvice extends Object implements org.springframework.web.servlet.mvc.method.annotation.RequestBodyAdvice
| 构造器和说明 |
|---|
RequestBodyEnhancerAdvice() |
| 限定符和类型 | 方法和说明 |
|---|---|
Object |
afterBodyRead(Object body,
org.springframework.http.HttpInputMessage inputMessage,
org.springframework.core.MethodParameter parameter,
Type targetType,
Class<? extends org.springframework.http.converter.HttpMessageConverter<?>> converterType) |
org.springframework.http.HttpInputMessage |
beforeBodyRead(org.springframework.http.HttpInputMessage inputMessage,
org.springframework.core.MethodParameter parameter,
Type targetType,
Class<? extends org.springframework.http.converter.HttpMessageConverter<?>> converterType) |
static boolean |
cachinBody() |
Object |
handleEmptyBody(Object body,
org.springframework.http.HttpInputMessage inputMessage,
org.springframework.core.MethodParameter parameter,
Type targetType,
Class<? extends org.springframework.http.converter.HttpMessageConverter<?>> converterType) |
static void |
register(RequestBodyEnhancer enhancer) |
boolean |
supports(org.springframework.core.MethodParameter methodParameter,
Type targetType,
Class<? extends org.springframework.http.converter.HttpMessageConverter<?>> converterType) |
public static void register(RequestBodyEnhancer enhancer)
public static boolean cachinBody()
public boolean supports(org.springframework.core.MethodParameter methodParameter,
Type targetType,
Class<? extends org.springframework.http.converter.HttpMessageConverter<?>> converterType)
supports 在接口中 org.springframework.web.servlet.mvc.method.annotation.RequestBodyAdvicepublic org.springframework.http.HttpInputMessage beforeBodyRead(org.springframework.http.HttpInputMessage inputMessage,
org.springframework.core.MethodParameter parameter,
Type targetType,
Class<? extends org.springframework.http.converter.HttpMessageConverter<?>> converterType)
throws IOException
beforeBodyRead 在接口中 org.springframework.web.servlet.mvc.method.annotation.RequestBodyAdviceIOExceptionpublic Object afterBodyRead(Object body, org.springframework.http.HttpInputMessage inputMessage, org.springframework.core.MethodParameter parameter, Type targetType, Class<? extends org.springframework.http.converter.HttpMessageConverter<?>> converterType)
afterBodyRead 在接口中 org.springframework.web.servlet.mvc.method.annotation.RequestBodyAdvicepublic Object handleEmptyBody(Object body, org.springframework.http.HttpInputMessage inputMessage, org.springframework.core.MethodParameter parameter, Type targetType, Class<? extends org.springframework.http.converter.HttpMessageConverter<?>> converterType)
handleEmptyBody 在接口中 org.springframework.web.servlet.mvc.method.annotation.RequestBodyAdviceCopyright © 2025. All rights reserved.