1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
| public class ArkMethodArgumentResolver implements HandlerMethodArgumentResolver {
/**
* 添加判断逻辑, 可以引入annotation, instanceof, {@link org.springframework.util.ClassUtils}.
*/
@Override
public boolean supportsParameter(MethodParameter parameter) {
return true;
}
/**
* 从其他上下文中获取到的参数
*/
@Override
public Object resolveArgument(MethodParameter parameter, ModelAndViewContainer mavContainer, NativeWebRequest webRequest, WebDataBinderFactory binderFactory) throws Exception {
return null;
}
}
|