jjzjj

JobInstanceAlreadyCompleteExcepti

全部标签

java - Spring Batch - 作业实例已存在 : JobInstanceAlreadyCompleteException

我在我的Spring应用程序中编写了一个简单的调度程序。我运行我的本地服务器,几秒钟后,在Importer类中,每5秒调用一次checker.start(),就像我在配置文件中配置的那样。之后,此方法使用JobLauncher调用Job,这里出现错误。org.springframework.batch.core.repository.JobInstanceAlreadyCompleteException:Ajobinstancealreadyexistsandiscompleteforparameters={}.Ifyouwanttorunthisjobagain,changethep