导出

parent 4f279152
...@@ -564,7 +564,7 @@ public class UserQueryLogController { ...@@ -564,7 +564,7 @@ public class UserQueryLogController {
{ {
OutputStream output=response.getOutputStream(); OutputStream output=response.getOutputStream();
response.reset(); response.reset();
response.setHeader("Content-disposition", "attachment; filename=users.xls"); response.setHeader("Content-disposition", "attachment; filename=users.xlsx");
response.setContentType("application/vnd.ms-excel;charset=utf-8"); response.setContentType("application/vnd.ms-excel;charset=utf-8");
response.setCharacterEncoding("utf-8"); response.setCharacterEncoding("utf-8");
wb.write(output); wb.write(output);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment