Class FaqItemWriter

java.lang.Object
com.bytedesk.kbase.faq.batch.FaqItemWriter
All Implemented Interfaces:
org.springframework.batch.item.ItemWriter<FaqEntity>

@Component public class FaqItemWriter extends Object implements org.springframework.batch.item.ItemWriter<FaqEntity>
FAQ数据写入器 将处理后的FaqEntity批量保存到数据库
  • Field Details

  • Constructor Details

    • FaqItemWriter

      public FaqItemWriter()
  • Method Details

    • write

      public void write(org.springframework.batch.item.Chunk<? extends FaqEntity> items) throws Exception
      批量写入FAQ数据
      Specified by:
      write in interface org.springframework.batch.item.ItemWriter<FaqEntity>
      Parameters:
      items - 需要写入的FAQ实体列表
      Throws:
      Exception - 写入过程中的异常