---
title: "spring batch end用法"
author: "wjlvivid"
date: "2020-06-27T00:43:20Z"
tags: []
categories: ["编程语言"]
slug: "spring-batch-end"
draft: false
lastmod: "2020-06-27T00:43:20Z"
id: 2515224
url: "https://wjlvivid.iteye.com/blog/2515224"
---

如果spring batch需要进行有条件的判断是否继续执行step还是需要中止当前批量，可以使用&lt;batch:next&gt;或&lt;batch:end on="STOPPED"&gt;

&lt;batch:next on="COMPLETED" to="下一step id"&gt;.....&lt;/batch:next&gt;