小编Ton*_*rds的帖子

为什么不能使用注释在ItemProcessor中找到jobParameters?

我在项目处理器中使用作业参数时遇到问题。目前,代码基本上是这样设置的:如何使用spring Batch批注将Job参数输入到项目处理器中,但是我在运行时收到错误消息。另外,请注意,我的示例代码确实使用了一些Spring集成进行处理。

[ERROR] [restartedMain] o.s.b.SpringApplication - Application startup failed
org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'claimFileMessageToJobRequest': Unsatisfied dependency expressed through field 'job': Error creating bean with name 'importClaimJob' defined in class path resource [com/healthcloud/batch/config/ClaimBatchConfiguration.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.springframework.batch.core.Job]: Factory method 'importClaimJob' threw exception; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'importClaimStep1' defined in class path resource [com/healthcloud/batch/config/ClaimBatchConfiguration.class]: Bean instantiation via factory method failed; nested exception is …
Run Code Online (Sandbox Code Playgroud)

spring spring-integration spring-batch

4
推荐指数
1
解决办法
6011
查看次数

标签 统计

spring ×1

spring-batch ×1

spring-integration ×1