database - 要读取 Excel,我们可以使用 Spring 批处理吗?

标签 database excel spring-batch

我想知道是否可以使用 Spring Batch,以便从 一个 Excel 文件并将其保存在数据库中。

备注:Excel文件的内容每2小时更改一次。

如果 Spring Batch 无法实现,我还能使用什么其他解决方案

最佳答案

去看看spring-batch-extensions for Excel .您将找到 ExcelItemReader 和 ExcelItemWriter 的一些示例。

下面是Excel的spring-batch-extensions项目介绍:

Spring Batch extension which contains ItemReader implementations for Excel. Support for both JExcel and Apache POI is available. Simple xls documents can be read with both implementations, however for reading the newer xlsx format Apache POI is required.

你只需要 import sources into your IDE并使用它们。

关于database - 要读取 Excel,我们可以使用 Spring 批处理吗?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/30954931/

相关文章:

php - MySQL CGI 文件 500 内部服务错误

sql - 如何使用 SQL 为每个 MANAGER_ID 的每个员工添加剩余工资

excel - 如何计算 Excel 中两个数字之间的单元格数量?

java - Spring批处理并行处理两个任务,但第二个任务依赖于第一个任务

spring - 字段 'target' 上的对象 '' 中的字段错误 : rejected value []; codes [typeMismatch. 目标.,typeMismatch.,typeMismatch.java.util.Date,typeMismatch]

sql-server - Spring 批处理 "Invalid object name BATCH_JOB_INSTANCE"

java - db4o openfile 文件格式不兼容

mysql - 多种页面类型相互连接的SQL数据库设计

c# - 使用 EPPlus 将 Excel 工作表格式化为表格

C# 项目看不到 Excel COM Reference