Spring Batch: starting a job from within a Spring MVC contorller WITH A NEW THREAD

前端 未结 3 1030
夕颜
夕颜 2021-01-01 03:45

I have a Spring-Batch job that I launch from a Spring MVC controller. The controller gets an uploaded file from the user and the job is supposed to process the file:

3条回答
  •  不思量自难忘°
    2021-01-01 04:20

    If you don't need to show the processing errors to your client, you can start the spring batch job in a seperate thread.

提交回复
热议问题