日期:2014-05-17 浏览次数:20741 次
public void doGet(HttpServletRequest req, HttpServletResponse resp) throws IOException, ServletException { resp.setContentType("text/html;charset=UTF-8"); AsyncContext ctx = req.startAsync(); ctx.setTimeout(100000000); new Thread(new Executor(ctx)).start(); }