【问题标题】:What is the best way to perform parallel execution inside a web servlet? [duplicate]在 Web servlet 中执行并行执行的最佳方式是什么? [复制]
【发布时间】:2016-08-08 04:20:49
【问题描述】:

在 web servlet 中生成线程不是正确的方法。执行器服务最好用于异步操作(是吗?) 如果需要执行多个并行操作并将结果组合到同一个 webservlet 响应中,那么什么是一种好的方法?

【问题讨论】:

    标签: java web-services servlets


    【解决方案1】:

    有很多方法可以使用 Spring MVC 概念或 struts 框架实现多个 servlet 响应,这很容易完成。 只需通过以下链接 http://www.javatpoint.com/struts-2-interceptors-tutorial http://www.tutorialspoint.com/spring/spring_web_mvc_framework.htm

    【讨论】:

      猜你喜欢
      • 2010-09-19
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2012-04-17
      • 2021-12-19
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多