java - 如果上一步失败,如何执行下一步?
问题描述
我有以下工作配置:
return jobBuilderFactory.get("read-file-job")
.start(stepBuilderFactory.get("master-step")
.partitioner("myPartitioner", partitioner)
.step(processChunk)
.aggregator(myAggregator)
.taskExecutor(partitionerExecutor())
.build()
).next(removeFilesStep)
.build();
如果聚合器抛出 RuntimeException,则跳过 removeFilesStep。
我怎么能避免呢?
解决方案
推荐阅读
- javascript - 为 discord.js v12 创建一个自动角色
- outlook - 将现有 Office 会议附加到 Outlook 日历事件
- javascript - 无法使用 js/express.js 显示来自 MongoDb 的数据,
- r - 检索街道 OSM R 的表面
- python - 熊猫将groupby中的几列总和的最大值的列名获取到新列
- android - 使用带有 RecyclerView 的 ViewPager2 并将导航组件用于 RecyclerView 的 onItemClick 的最佳实践
- node.js - 在nodejs中合并2个日志文件
- express - 为什么 Morgan Logger 服务器中间件不能在单独的文件中工作?
- javascript - 使用for循环迭代时包含()不匹配字符串
- javascript - 如何自定义融合甘特图?