@Order(value=1)
@AutoConfiguration
@ControllerAdvice
@ConditionalOnProperty(value="xg.api.crypto.enabled",
havingValue="true",
matchIfMissing=true)
public class ApiEncryptResponseBodyAdvice
extends Object
implements org.springframework.web.servlet.mvc.method.annotation.ResponseBodyAdvice<Object>
ResponseBody
或者控制类上含有RestController
以及package为tech.msop.core.api.signature.annotation.encrypt下的注解有效ResponseBodyAdvice| 构造器和说明 |
|---|
ApiEncryptResponseBodyAdvice() |
| 限定符和类型 | 方法和说明 |
|---|---|
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(org.springframework.core.MethodParameter returnType,
@NonNull
Class converterType)
supports 在接口中 org.springframework.web.servlet.mvc.method.annotation.ResponseBodyAdvice<Object>@Nullable public Object beforeBodyWrite(Object body, @NonNull org.springframework.core.MethodParameter returnType, @NonNull org.springframework.http.MediaType selectedContentType, @NonNull Class selectedConverterType, @NonNull org.springframework.http.server.ServerHttpRequest request, @NonNull org.springframework.http.server.ServerHttpResponse response)
beforeBodyWrite 在接口中 org.springframework.web.servlet.mvc.method.annotation.ResponseBodyAdvice<Object>Copyright © 2025. All rights reserved.