xiongzhu %!s(int64=2) %!d(string=hai) anos
pai
achega
d0fc7304ae
Modificáronse 2 ficheiros con 6 adicións e 0 borrados
  1. 5 0
      pom.xml
  2. 1 0
      src/main/java/com/izouma/zhirongip/utils/excel/ExcelUtils.java

+ 5 - 0
pom.xml

@@ -293,6 +293,11 @@
             <artifactId>hutool-all</artifactId>
             <version>5.3.8</version>
         </dependency>
+        <dependency>
+            <groupId>cglib</groupId>
+            <artifactId>cglib</artifactId>
+            <version>2.2</version>
+        </dependency>
     </dependencies>
 
 </project>

+ 1 - 0
src/main/java/com/izouma/zhirongip/utils/excel/ExcelUtils.java

@@ -23,6 +23,7 @@ public class ExcelUtils<T> {
         EasyExcel.write(response.getOutputStream(), data.get(0).getClass()).sheet("sheet")
                  .registerConverter(new LocalDateConverter())
                  .registerConverter(new LocalDateTimeConverter())
+                 .registerConverter(new EnumExcelConverter())
                  .doWrite(data);
     }