我已经为Multipart / form-data实现了Jersey REST Web服务,它适用于任何工具(SOAP UI),但如果请求来自Application(在解析文件时获取空内容)则无效。
Response solution(Multipart multipart){
int size=multipart.size();//2
String file1=multipart.getContentDisposition().get(0).getEntity();//null
}