diff --git a/src/main/java/com/alibaba/excel/util/WriteHandlerUtils.java b/src/main/java/com/alibaba/excel/util/WriteHandlerUtils.java index 57f0c497..044e7b2e 100644 --- a/src/main/java/com/alibaba/excel/util/WriteHandlerUtils.java +++ b/src/main/java/com/alibaba/excel/util/WriteHandlerUtils.java @@ -234,6 +234,6 @@ public class WriteHandlerUtils { } else { writeHandlerMap = writeContext.currentWriteHolder().writeHandlerMap(); } - return writeHandlerMap.get(WorkbookWriteHandler.class); + return writeHandlerMap.get(clazz); } }