Spring Batch SQL Command with JobParameters
问题 I am new to spring-batch, here i am getting some data from DB using following reader statements. Here i need to pass value dynamically(thru arguments). <bean id="ItemReader" class="org.springframework.batch.item.database.JdbcCursorItemReader"> <property name="dataSource" ref="dataSource" /> <property name="sql"> <value> <![CDATA[ select * from table where section = #{jobParameters['section']} ]]> </value> </property> <property name="rowMapper"> <bean class="xyzRowMapper" /> </property> </bean