在一个servlet中的get方法中起线程,有没有意义
protectedvoiddoGet(HttpServletRequestrequest,HttpServletResponseresponse)throwsServle...
protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
String id = request.getParameter("id");
new Thread(new Runnable接口实现类(id));
} 展开
String id = request.getParameter("id");
new Thread(new Runnable接口实现类(id));
} 展开
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询