Package com.pig4cloud.plugin.excel
Class ExcelHandlerConfiguration
- java.lang.Object
-
- com.pig4cloud.plugin.excel.ExcelHandlerConfiguration
-
public class ExcelHandlerConfiguration extends java.lang.Object- Version:
- 1.0
- Author:
- Hccake 2020/10/28
-
-
Field Summary
Fields Modifier and Type Field Description private ExcelConfigPropertiesconfigPropertiesprivate org.springframework.beans.factory.ObjectProvider<java.util.List<com.alibaba.excel.converters.Converter<?>>>converterProvider
-
Constructor Summary
Constructors Constructor Description ExcelHandlerConfiguration()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description I18nHeaderCellWriteHandleri18nHeaderCellWriteHandler(org.springframework.context.MessageSource messageSource)excel 头的国际化处理器ManySheetWriteHandlermanySheetWriteHandler()多sheet 写入处理器ResponseExcelReturnValueHandlerresponseExcelReturnValueHandler(java.util.List<SheetWriteHandler> sheetWriteHandlerList)返回Excel文件的 response 处理器SingleSheetWriteHandlersingleSheetWriteHandler()单sheet 写入处理器WriterBuilderEnhancerwriterBuilderEnhancer()ExcelBuild增强
-
-
-
Field Detail
-
configProperties
private final ExcelConfigProperties configProperties
-
converterProvider
private final org.springframework.beans.factory.ObjectProvider<java.util.List<com.alibaba.excel.converters.Converter<?>>> converterProvider
-
-
Method Detail
-
writerBuilderEnhancer
@Bean @ConditionalOnMissingBean public WriterBuilderEnhancer writerBuilderEnhancer()
ExcelBuild增强- Returns:
- DefaultWriterBuilderEnhancer 默认什么也不做的增强器
-
singleSheetWriteHandler
@Bean @ConditionalOnMissingBean public SingleSheetWriteHandler singleSheetWriteHandler()
单sheet 写入处理器
-
manySheetWriteHandler
@Bean @ConditionalOnMissingBean public ManySheetWriteHandler manySheetWriteHandler()
多sheet 写入处理器
-
responseExcelReturnValueHandler
@Bean @ConditionalOnMissingBean public ResponseExcelReturnValueHandler responseExcelReturnValueHandler(java.util.List<SheetWriteHandler> sheetWriteHandlerList)
返回Excel文件的 response 处理器- Parameters:
sheetWriteHandlerList- 页签写入处理器集合- Returns:
- ResponseExcelReturnValueHandler
-
i18nHeaderCellWriteHandler
@Bean @ConditionalOnBean(org.springframework.context.MessageSource.class) @ConditionalOnMissingBean public I18nHeaderCellWriteHandler i18nHeaderCellWriteHandler(org.springframework.context.MessageSource messageSource)
excel 头的国际化处理器- Parameters:
messageSource- 国际化源
-
-