解析请求,类型不匹配

在解析请求时,List items = upload.parseRequest(request);
错误提示:The method parseRequest(RequestContext) in the type FileUploadBase is not applicable for the arguments (HttpServletRequest)
什么情况可能造成的类型不匹配?

upload.parseRequest(request);的返回值,是List 类型的吗?如果是,那你 upload.parseRequest()。的参数类型,你查看下,是不是你提供的
request

参数类型不对,parseRequest方法不接受HttpServletRequest类型。去看下parseRequest的定义。