@ControllerAdvice public class CoryWebResponseBodyAdvice extends Object implements org.springframework.web.servlet.mvc.method.annotation.ResponseBodyAdvice, org.springframework.context.ApplicationContextAware
| 限定符和类型 | 字段和说明 |
|---|---|
static String |
CONTENT_TYPE_DEFAULT_SUB_TYPE |
static String |
CONTENT_TYPE_DEFAULT_TYPE |
static String |
CONTENT_TYPE_PARAMETER |
| 构造器和说明 |
|---|
CoryWebResponseBodyAdvice() |
| 限定符和类型 | 方法和说明 |
|---|---|
Object |
beforeBodyWrite(Object o,
org.springframework.core.MethodParameter methodParameter,
org.springframework.http.MediaType mediaType,
Class aClass,
org.springframework.http.server.ServerHttpRequest serverHttpRequest,
org.springframework.http.server.ServerHttpResponse serverHttpResponse) |
void |
setApplicationContext(org.springframework.context.ApplicationContext applicationContext) |
boolean |
supports(org.springframework.core.MethodParameter methodParameter,
Class aClass) |
public boolean supports(org.springframework.core.MethodParameter methodParameter,
Class aClass)
supports 在接口中 org.springframework.web.servlet.mvc.method.annotation.ResponseBodyAdvice@Nullable public Object beforeBodyWrite(@Nullable Object o, org.springframework.core.MethodParameter methodParameter, org.springframework.http.MediaType mediaType, Class aClass, org.springframework.http.server.ServerHttpRequest serverHttpRequest, org.springframework.http.server.ServerHttpResponse serverHttpResponse)
beforeBodyWrite 在接口中 org.springframework.web.servlet.mvc.method.annotation.ResponseBodyAdvicepublic void setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
throws org.springframework.beans.BeansException
setApplicationContext 在接口中 org.springframework.context.ApplicationContextAwareorg.springframework.beans.BeansExceptionCopyright © 2022. All rights reserved.