From 8eddb3cf716331927cd1007852c1bae53fa86748 Mon Sep 17 00:00:00 2001 From: wany <13995595726@qq.com> Date: Tue, 3 Sep 2024 15:52:24 +0800 Subject: [PATCH] =?UTF-8?q?=E6=97=A5=E5=9D=87=E6=B0=B4=E4=BD=8D=E5=B9=B4?= =?UTF-8?q?=E6=8A=A5=E8=A1=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/java/com/gunshi/project/xyt/util/ExcelUtil.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main/java/com/gunshi/project/xyt/util/ExcelUtil.java b/src/main/java/com/gunshi/project/xyt/util/ExcelUtil.java index a3e4c55..f8e5e39 100644 --- a/src/main/java/com/gunshi/project/xyt/util/ExcelUtil.java +++ b/src/main/java/com/gunshi/project/xyt/util/ExcelUtil.java @@ -94,6 +94,7 @@ public class ExcelUtil { ExcelWriterSheetBuilder builder = EasyExcel.write(out, clazz) //是否自动关闭流 .autoCloseStream(Boolean.FALSE) + .registerWriteHandler(new VoteTitleHandler(filename)) .registerWriteHandler(loopMergeStrategy) .registerWriteHandler(strategy1) .registerWriteHandler(strategy2)