@FormDataParam("fileData")中“fileData”要和前台name相同否则@FormDataParam("") 获取的参数值就为null
@POST
@Path("/uploadCourse")
@Consumes(MediaType.MULTIPART_FORM_DATA)
@Produces(MediaType.APPLICATION_JSON)
public List<Course> uploadimage1(@FormDataParam("fileData") String fileString,
@FormDataParam("fileData") InputStream fileInputStream,
@FormDataParam("fileData") FormDataContentDisposition disposition) throws IOException {
List<Course> list = userService.readXls(fileInputStream);
return list;
}