0
스프링 배치 작업의 단계를 계획하려고합니다. 나는 사용을 시도했다. 하지만 내가 SpringXd에서 그 작업을 실패하려고 할 때. 아래는 내가스프링 스텝 스케줄링
<batch:job id="addB" restartable="false">
<batch:step id="AddB" >
<tasklet ref="addBTasklet" />
</batch:step>
</batch:job>
<task:scheduler id="taskScheduler" pool-size="1"/>
<task:scheduled-tasks scheduler="taskScheduler">
<task:scheduled ref="AddB" method="execute" cron="*/5 * * * * ?"/>
</task:scheduled-tasks>
에 직면하고있어 내 코드와 오류는이 오류가 점점 오전 :
org.springframework.beans.factory.BeanCreationException: Error creating bean with name
'org.springframework.scheduling.support.ScheduledMethodRunnable#0': Bean instantiation via constructor failed; nested exception is org.springframework.beans.BeanInstantiationException:
Failed to instantiate [org.springframework.scheduling.support.ScheduledMethodRunnable]:` Constructor threw exception; nested exception is java.lang.NoSuchMethodException:
org.springframework.batch.core.step.tasklet.TaskletStep.execute()
"addB"및 "addC"의 두 단계가 있고 둘 다 다른 cron 표현식으로 실행되도록 예약해야하는 경우 어떻게됩니까? – srikar
또는 BeanA, BeanB, BeanC, BeanD를 갖고 있으며 각각 특정 시간에 일정을 잡아야합니다. – srikar
안녕하세요. 나는 두 가지 다른 cron 표현을 사용하여 두 가지 다른 작업을 트리거하는 상황을 포함하도록 대답을 확장했습니다. 희망이 도움이됩니다. – aksamit