diff --git a/zlpt-common/zlpt-common-core/src/main/java/com/bonus/zlpt/common/core/utils/poi/ExcelUtil.java b/zlpt-common/zlpt-common-core/src/main/java/com/bonus/zlpt/common/core/utils/poi/ExcelUtil.java index ae81639..0278a6a 100644 --- a/zlpt-common/zlpt-common-core/src/main/java/com/bonus/zlpt/common/core/utils/poi/ExcelUtil.java +++ b/zlpt-common/zlpt-common-core/src/main/java/com/bonus/zlpt/common/core/utils/poi/ExcelUtil.java @@ -475,7 +475,7 @@ public class ExcelUtil { String encodedFileName = null; - encodedFileName = URLEncoder.encode(fileName, StandardCharsets.UTF_8); + encodedFileName = URLEncoder.encode(fileName+".xlsx", StandardCharsets.UTF_8); response.setContentType("application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"); response.setCharacterEncoding("utf-8"); response.setHeader("Content-Disposition", "attachment; filename=\"" + encodedFileName + "\"");