title: Spring Batch - Passing request body object from controller to spring batch reader
body: <p>I'm currently building a spring boot app. This app uses Spring Batch.
  So, what I'm going to achieve is this :</p>
  
  <ol>
  <li>User accesses url /api/batch which is a POST method, so there'll be a request body passed to the controller.</li>
  <li>The request body is passed to Spring Batch reader so the reader can read the request body.</li>
  <li>Then spring batch executes the job.</li>
  </ol>
  
  <p>I've been searching for the answer but I found nothing. I've found this : <a href="https://www.petrikainulainen.net/programming/spring-framework/spring-batch-tutorial-reading-information-from-a-rest-api/" rel="nofollow noreferrer">https://www.petrikainulainen.net/programming/spring-framework/spring-batch-tutorial-reading-information-from-a-rest-api/</a>. But the batch reader reads from a GET url not POST.
  Anyone can help me? Thank you.</p>