Class ExcelHandlerConfiguration

java.lang.Object
com.pig4cloud.plugin.excel.ExcelHandlerConfiguration

public class ExcelHandlerConfiguration extends Object
Version:
1.0
Author:
Hccake 2020/10/28
  • Field Details

    • configProperties

      private final ExcelConfigProperties configProperties
    • converterProvider

      private final org.springframework.beans.factory.ObjectProvider<List<com.alibaba.excel.converters.Converter<?>>> converterProvider
  • Constructor Details

    • ExcelHandlerConfiguration

      public ExcelHandlerConfiguration()
  • Method Details

    • 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(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 - 国际化源