找到代码:
FileItemFactory factory = new DiskFileItemFactory();
ServletFileUpload upload = new ServletFileUpload(factory);
   
在这行下面添加 :

upload.setHeaderEncoding(encoding);

"encoding"的值 根据具体情况为 "UTF-8" 或 "GBK".