org.springframework.web.bind.MissingServletRequestParameterException: Required MultipartFile parameter 'file' is not present

Stack Overflow | user6834504 | 8 months ago
tip
Do you know that we can give you better hits? Get more relevant results from Samebug’s stack trace search.
  1. 0

    How to pass multipart file along with file name to post method using Apache httpclient 3.x?

    Stack Overflow | 8 months ago | user6834504
    org.springframework.web.bind.MissingServletRequestParameterException: Required MultipartFile parameter 'file' is not present

    Root Cause Analysis

    1. org.springframework.web.bind.MissingServletRequestParameterException

      Required MultipartFile parameter 'file' is not present

      at org.springframework.web.method.annotation.RequestParamMethodArgumentResolver.handleMissingValue()
    2. Spring
      InvocableHandlerMethod.getMethodArgumentValues
      1. org.springframework.web.method.annotation.RequestParamMethodArgumentResolver.handleMissingValue(RequestParamMethodArgumentResolver.java:251)
      2. org.springframework.web.method.annotation.AbstractNamedValueMethodArgumentResolver.resolveArgument(AbstractNamedValueMethodArgumentResolver.java:96)
      3. org.springframework.web.method.support.HandlerMethodArgumentResolverComposite.resolveArgument(HandlerMethodArgumentResolverComposite.java:78)
      4. org.springframework.web.method.support.InvocableHandlerMethod.getMethodArgumentValues(InvocableHandlerMethod.java:162)
      4 frames