- All Implemented Interfaces:
org.springframework.batch.item.ItemWriter<FaqEntity>
@Component
public class FaqItemWriter
extends Object
implements org.springframework.batch.item.ItemWriter<FaqEntity>
FAQ数据写入器
将处理后的FaqEntity批量保存到数据库
-
-
Constructor Summary
Constructors
-
Method Summary
void
write(org.springframework.batch.item.Chunk<? extends FaqEntity> items)
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
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 - 写入过程中的异常