@ControllerAdvice public class GlobalControllerAdvice extends Object implements org.springframework.web.servlet.mvc.method.annotation.ResponseBodyAdvice<Object>
构造器和说明 |
---|
GlobalControllerAdvice() |
限定符和类型 | 方法和说明 |
---|---|
Object |
beforeBodyWrite(Object body,
org.springframework.core.MethodParameter returnType,
org.springframework.http.MediaType selectedContentType,
Class selectedConverterType,
org.springframework.http.server.ServerHttpRequest request,
org.springframework.http.server.ServerHttpResponse response) |
boolean |
supports(org.springframework.core.MethodParameter returnType,
Class converterType) |
public boolean supports(@NotNull org.springframework.core.MethodParameter returnType, @NotNull Class converterType)
supports
在接口中 org.springframework.web.servlet.mvc.method.annotation.ResponseBodyAdvice<Object>
public Object beforeBodyWrite(Object body, @NotNull org.springframework.core.MethodParameter returnType, @NotNull org.springframework.http.MediaType selectedContentType, @NotNull Class selectedConverterType, @NotNull org.springframework.http.server.ServerHttpRequest request, @NotNull org.springframework.http.server.ServerHttpResponse response)
beforeBodyWrite
在接口中 org.springframework.web.servlet.mvc.method.annotation.ResponseBodyAdvice<Object>
Copyright © 2025. All rights reserved.