@Order(value=1) @ControllerAdvice public class EncryptResponseBodyAdvice extends Object implements org.springframework.web.servlet.mvc.method.annotation.ResponseBodyAdvice
ResponseBody
或者控制类上含有
RestController
以及package为
com.sinosoftgz.starter.encrypt.annotation.encrypt
下的注解有效
Created by Roney on 2020/12/25
ResponseBodyAdvice| 构造器和说明 |
|---|
EncryptResponseBodyAdvice() |
| 限定符和类型 | 方法和说明 |
|---|---|
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,
Class converterType)
supports 在接口中 org.springframework.web.servlet.mvc.method.annotation.ResponseBodyAdvicepublic 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)
beforeBodyWrite 在接口中 org.springframework.web.servlet.mvc.method.annotation.ResponseBodyAdviceCopyright © 2024. All rights reserved.