Part a = req.getPart("name"); a.write(path+fileName);
注意:如果遇到【由于没有提供multi-part配置,无法处理parts】应添加
@MultipartConfig注解