1
我想retrun使用RestEasy的文件,所以我有以下方法:RestEasy的:返回文件
@Path("/export/{id}/list.xlsx")
@Produces("application/vnd.openxmlformats-officedocument.spreadsheetml.sheet")
@GET
@NoCache
public Response exportList(
@PathParam(value = "id") Long m,
@QueryParam("p1") String p1,
@QueryParam("p2") String p2,
......
){...body...}
的方法接受很多参数。 所以..它工作正常,但只在Mozila或Chrome。 IE建议我用一个奇怪的名字保存文件(不是list..xslx但整个url string)!当我按下“另存为”时,我得到“SocketWriteError”。 有没有人遇到过这样的问题?也许它连接到巨大的参数列表? 谢谢。