接口 WebArgumentResolver

    • 字段详细资料

      • UNRESOLVED

        static final Object UNRESOLVED
        Marker to be returned when the resolver does not know how to handle the given method parameter.
    • 方法详细资料

      • resolveArgument

        @Nullable
        Object resolveArgument​(MethodParameter methodParameter,
                               NativeWebRequest webRequest)
                        throws Exception
        Resolve an argument for the given handler method parameter within the given web request.
        参数:
        methodParameter - the handler method parameter to resolve
        webRequest - the current web request, allowing access to the native request as well
        返回:
        the argument value, or UNRESOLVED if not resolvable
        抛出:
        Exception - in case of resolution failure