As discussed in https://github.com/spring-projects/spring-framework/issues/27742, ContentRequestMatchers#multipartData Javadoc should be updated to mention this method requires a dependency on Tomcat's Commons FileUpload fork instead of the original Apache Commons FileUpload.