Share the joy
After we add parameters to a job and run it. How do we get the parameter in the class?
In config.xml, we add the following code:
<bean id="beanName" class="com.pli.project.sba"> <property name="emailFlag" value="#{jobParameters[FAILURE_EMAIL]}"/> <bean> <bean class="org.springframework.batch.core.scope.StepScope" />