mime type fix
This commit is contained in:
parent
5d73bc771f
commit
e8deeae4a9
|
|
@ -321,8 +321,8 @@ public class ExcelUtil<T>
|
||||||
*/
|
*/
|
||||||
public void exportExcel(HttpServletResponse response, List<T> list, String sheetName) throws IOException
|
public void exportExcel(HttpServletResponse response, List<T> list, String sheetName) throws IOException
|
||||||
{
|
{
|
||||||
response.setContentType("application/vnd.ms-excel");
|
//response.setContentType("application/vnd.ms-excel");
|
||||||
//response.setContentType("application/vnd.openxmlformats-officedocument.spreadsheetml.sheet");
|
response.setContentType("application/vnd.openxmlformats-officedocument.spreadsheetml.sheet");
|
||||||
response.setCharacterEncoding("utf-8");
|
response.setCharacterEncoding("utf-8");
|
||||||
this.init(list, sheetName, Type.EXPORT);
|
this.init(list, sheetName, Type.EXPORT);
|
||||||
exportExcel(response.getOutputStream());
|
exportExcel(response.getOutputStream());
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue