标签:context pre lin tac contex star async attribute code
//获取到request
HttpServletRequest req = ServletActionContext.getRequest();
//设置属性org.apache.catalina.ASYNC_SUPPORTED为true
req.setAttribute("org.apache.catalina.ASYNC_SUPPORTED", true);
AsyncContext async = req.startAsync(getRequest(), getResponse());
标签:context pre lin tac contex star async attribute code
原文地址:https://www.cnblogs.com/Mustr/p/9335482.html