升级select2到最新版4.0.7
This commit is contained in:
@ -79,16 +79,17 @@ public class GenController extends BaseController
|
||||
|
||||
/**
|
||||
* 生成zip文件
|
||||
*
|
||||
* @param response
|
||||
* @param data
|
||||
* @throws IOException
|
||||
*/
|
||||
private void genCode(HttpServletResponse response, byte[] data) throws IOException {
|
||||
private void genCode(HttpServletResponse response, byte[] data) throws IOException
|
||||
{
|
||||
response.reset();
|
||||
response.setHeader("Content-Disposition", "attachment; filename=\"ruoyi.zip\"");
|
||||
response.addHeader("Content-Length", "" + data.length);
|
||||
response.setContentType("application/octet-stream; charset=UTF-8");
|
||||
|
||||
IOUtils.write(data, response.getOutputStream());
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user