我目前正在做一个使用springbatch的spring boot项目。我正在尝试使用JavaConfig而不是xml,但是由于目前所有的文档都是xml格式的,这很困难。我关注了,但在使用JobLauncherTestUtils时遇到了困难。我知道我需要告诉测试使用正确的spring上下文,但是我似乎不知道怎么做。org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type
在spring-batch中执行一个步骤的功能测试时,我遇到了以下错误。org.springframework.beans.factory.NoSuchBeanDefinitionException: No matching bean of type [org.springframework.batch.test.JobLauncherTestUtils"1" /> </<e
我正在编写一个示例来演示springbatch的单元测试。在maven构建期间,我可以看到单元测试执行成功,但构建仍然失败,错误如下。 已成功执行批处理测试。org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type 'org.springframework.batch.test.JobLauncherTestUtils(DefaultListableBeanFactory.jav