Spring MVC how to get progress of running async task

后端 未结 4 860
轻奢々
轻奢々 2020-12-30 10:09

I would like to start an asynchronous task from within controller like in following code sniplet from Spring docs.

import org.springframework.core.task.Tas         


        
4条回答
  •  一整个雨季
    2020-12-30 11:03

    Check this github source, it gives pretty simple way of catching status of the background job using @Async of Spring mvc.

    https://github.com/frenos/spring-mvc-async-progress/tree/master/src/main/java/de/codepotion/examples/asyncExample

提交回复
热议问题