接收http傳送的報文,並且列印處理
阿新 • • 發佈:2019-01-04
1.首先建立一個servlet:
2.程式碼如下:
@WebServlet("/push") publicclass Test extends HttpServlet implements Servlet { private static final long serialVersionUID = 1L; public Test() { // TODO Auto-generated constructor stub } protected void doGet(HttpServletRequest request, HttpServletResponse response