<list size="3">
<item index="0" class="java.lang.String" itemvalue="JavaScript Debug.my-debug-task" />
<item index="1" class="java.lang.String" itemvalue="JavaScript Debug.Unnamed" />
<item index="2" class="java.lang.String" itemvalue="Maven.config start -devs" />
</list>
答案 0 :(得分:0)
我认为你错过了
response.flushbuffer
复制流后。这对我有用:
response.setContentType(MediaType.APPLICATION_OCTET_STREAM.toString());
response.addHeader("Content-Disposition", "attachment; filename=" + file.getFileName());
IOUtils.copy(fsin, response.getOutputStream());
fsin.close();
response.flushBuffer();
response.getOutputStream().close()