How to get access to job parameters from ItemReader, in Spring Batch?

前端 未结 7 1659
梦谈多话
梦谈多话 2020-11-30 23:29

This is part of my job.xml:


  
    

        
7条回答
  •  既然无缘
    2020-12-01 00:05

    Did you declare the jobparameters as map properly as bean?

    Or did you perhaps accidently instantiate a JobParameters object, which has no getter for the filename?

    For more on expression language you can find information in Spring documentation here.

提交回复
热议问题