|This annotation specifies that a parameter should be mapped to a given request part. The part name must match the name of the method parameter, unless you choose to provide it as an argument to |
If you are running on an older version of Java (pre 1.7), or are compiling without debug information, then Java will replace the name of the parameter with
arg1, etc, which will prevent Spring from being able to match them up with the part names. If that is the case, then you will need to set the name of the part in the
@RequestPart annotation, as documented in Parameters.