com.pig4cloud.plugin.excel.handler.DictCacheClearSheetWriteHandler Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of excel-spring-boot-starter Show documentation
Show all versions of excel-spring-boot-starter Show documentation
easy and high performance excel
package com.pig4cloud.plugin.excel.handler;
import cn.idev.excel.write.handler.WorkbookWriteHandler;
import cn.idev.excel.write.handler.context.WorkbookWriteHandlerContext;
import com.pig4cloud.plugin.excel.converters.DictTypeConvert;
/**
* dict 缓存清空
*
* @author lengleng
* @date 2024/08/31
*/
public class DictCacheClearSheetWriteHandler implements WorkbookWriteHandler {
/**
* Called after all operations on the workbook have been completed
* @param context
*/
@Override
public void afterWorkbookDispose(WorkbookWriteHandlerContext context) {
DictTypeConvert.cache.clear();
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy