spring - StepExecutionListener 没有输入内容,而 SkipPolicy 没有 jobExecutionContext
问题描述
我能够在类中获取 JobExecution 上下文,该类在 ExitStatus afterStep(StepExecution stepExecution) 方法中实现 StepExecutionListener。但是不确定如何获取失败的记录详细信息。
可以在实现 skipPolicy 的 skipPolicy 类中检索记录输入,但是我们无法识别作业参数,因为当时 JobExecutioContext 为空
#1- Where or in which place we need to write the error csv file? We need to the csv
record info, error message, file name to be captured
#2 - Is it possible to get the csv record detail in StepExecutionListener class
谢谢
解决方案
推荐阅读
- java - 使用 MapSqlParameterSource 在 Spring MVC 中按子句查询排序
- review-board - 获得评审委员会奖杯资格的标准是什么?
- java - 尝试将大量数据行从文件写入corda时出现内存不足异常
- java - 当 statusCode 断言失败并重新保证时打印响应正文
- vba - 自动填充宏
- machine-learning - Deep Mind 的可微分神经计算机 (DNC) 中 LSTM 变体的维度
- python-3.x - 查找从 am*n 维矩阵到点的欧几里得距离
- scala - 使用 HBASE 客户端 API 创建一个大表
- android - 纸轨设置
- python-2.7 - Sympy 解决返回类型错误?