[英]Date format in Spring Batch Excel
I'm trying to read an Excel file with Spring Batch and Spring Batch Excel ( https://github.com/spring-projects/spring-batch-extensions/tree/main/spring-batch-excel ) and cells in date format以不同的格式从文件中读取。
在我的文件中,日期在 DD/MM/YYYY 中,当 Spring/POI 正在读取数据 org.apache.poi.ss.usermodel.DataFormatter 并且在performDateFormatting方法中,参数dateFormat具有 M/d/yy 模式。
阅读时有没有办法强制日期模式?
我的行映射器配置是
<bean id="caricaAnagraficheReader" class="org.springframework.batch.extensions.excel.poi.PoiItemReader" scope="step">
<property name="resource" value="file:#{batchParameters.genericBatchParameters.allegatoNomeCompleto}" />
<property name="linesToSkip" value="1" />
<property name="rowMapper">
<bean class="it.blue.batch.portali.components.CaricaAnagraficheRowMapper" />
</property>
</bean>
先感谢您
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.