类 I18nAspect
java.lang.Object
com.anji.captcha.config.I18nAspect
- 所有已实现的接口:
org.springframework.web.servlet.mvc.method.annotation.ResponseBodyAdvice<Object>
-
字段概要
字段修饰符和类型字段说明private org.springframework.context.ApplicationContextprivate org.springframework.context.MessageSourceprivate String -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明beforeBodyWrite(Object body, org.springframework.core.MethodParameter returnType, org.springframework.http.MediaType selectedContentType, Class<? extends org.springframework.http.converter.HttpMessageConverter<?>> selectedConverterType, org.springframework.http.server.ServerHttpRequest request, org.springframework.http.server.ServerHttpResponse response) private StringgetMessage(String code, com.anji.captcha.model.common.ResponseModel res) booleansupports(org.springframework.core.MethodParameter returnType, Class<? extends org.springframework.http.converter.HttpMessageConverter<?>> converterType)
-
字段详细资料
-
messageSource
@Autowired(required=false) private org.springframework.context.MessageSource messageSource -
prefix
-
applicationContext
@Autowired private org.springframework.context.ApplicationContext applicationContext
-
-
构造器详细资料
-
I18nAspect
public I18nAspect()
-
-
方法详细资料
-
supports
public boolean supports(org.springframework.core.MethodParameter returnType, Class<? extends org.springframework.http.converter.HttpMessageConverter<?>> converterType) - 指定者:
supports在接口中org.springframework.web.servlet.mvc.method.annotation.ResponseBodyAdvice<Object>
-
beforeBodyWrite
public Object beforeBodyWrite(Object body, org.springframework.core.MethodParameter returnType, org.springframework.http.MediaType selectedContentType, Class<? extends org.springframework.http.converter.HttpMessageConverter<?>> selectedConverterType, org.springframework.http.server.ServerHttpRequest request, org.springframework.http.server.ServerHttpResponse response) - 指定者:
beforeBodyWrite在接口中org.springframework.web.servlet.mvc.method.annotation.ResponseBodyAdvice<Object>
-
getMessage
-