|
|
|
@ -164,7 +164,7 @@ public class GlobalController implements ErrorController {
|
|
|
|
|
|
|
|
|
|
HttpHeaders headers = new HttpHeaders();
|
|
|
|
|
headers.setContentType(MediaType.APPLICATION_OCTET_STREAM);
|
|
|
|
|
headers.setContentDispositionFormData("attachment", file);
|
|
|
|
|
headers.setContentDispositionFormData("attachment", new String(downFile.getName().getBytes("UTF-8"), "iso-8859-1"));
|
|
|
|
|
|
|
|
|
|
//========
|
|
|
|
|
//下载DEMO
|
|
|
|
|