public class DecryptAdvice
extends org.springframework.web.servlet.mvc.method.annotation.RequestBodyAdviceAdapter
在具体的微服务中,可通过继承该类,并在类上添加@ControllerAdvice注解实现请求增强
构造器和说明 |
---|
DecryptAdvice() |
限定符和类型 | 方法和说明 |
---|---|
org.springframework.http.HttpInputMessage |
beforeBodyRead(org.springframework.http.HttpInputMessage inputMessage,
org.springframework.core.MethodParameter methodParameter,
Type targetType,
Class<? extends org.springframework.http.converter.HttpMessageConverter<?>> converterType) |
boolean |
supports(org.springframework.core.MethodParameter methodParameter,
Type type,
Class<? extends org.springframework.http.converter.HttpMessageConverter<?>> aClass) |
public boolean supports(org.springframework.core.MethodParameter methodParameter, Type type, Class<? extends org.springframework.http.converter.HttpMessageConverter<?>> aClass)
public org.springframework.http.HttpInputMessage beforeBodyRead(org.springframework.http.HttpInputMessage inputMessage, org.springframework.core.MethodParameter methodParameter, Type targetType, Class<? extends org.springframework.http.converter.HttpMessageConverter<?>> converterType) throws IOException
beforeBodyRead
在接口中 org.springframework.web.servlet.mvc.method.annotation.RequestBodyAdvice
beforeBodyRead
在类中 org.springframework.web.servlet.mvc.method.annotation.RequestBodyAdviceAdapter
IOException