如何在spring mvc框架中运行后台进程 [英] How to run background process in spring mvc framework
本文介绍了如何在spring mvc框架中运行后台进程的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有一个网络应用程序(使用 spring mvc 框架).它使以下内容:
I have a web-application (using spring mvc framework). It makes the following:
- 用户将文件上传到服务器.
- 立即转到成功页面.
- 使用该文件运行后台进程.
那么,我如何使用 spring mvc 框架来做到这一点?提前致谢!
So, how I can do this with spring mvc framework? Thank You in Advance!
推荐答案
使用异步标记方法.你在这里有例子:
Use asynchronous marked method. You got example here:
https://spring.io/guides/gs/async-method/
和文档:
http://docs.spring.io/spring/docs/current/spring-framework-reference/html/scheduling.html#scheduling
这篇关于如何在spring mvc框架中运行后台进程的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文