我正在尝试用SpringBatch为一个应用程序写一个测试。我把网站上的例子作为一个基础Testing a SpringBatch Job //@RunWith(SpringRunner.class)@DirtiesContext(classMode = ClassMode.AFTER_CLASS)
public class SpringBat
我目前正在做一个使用springbatch的spring boot项目。我正在尝试使用JavaConfig而不是xml,但是由于目前所有的文档都是xml格式的,这很困难。我知道我需要告诉测试使用正确的spring上下文,但是我似乎不知道怎么做。org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type 'org.springframework.batch.test.Job
我刚开始使用spring,但我正在尝试开发一个web应用程序,从这个应用程序中我可以向一个具有多个表的数据库中添加不同的条目--我现在有两个表,分别是批处理和类型--我的类型代码有效,我已经使用一个小型import org.example.BeerMachine.service.TypeService;public class BatchController {