1 protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { 2 //1.直接返回html页面 4 response.setContentType("text/html"); 5 PrintWriter out = response.getWriter(); 6 out.print(this.getClass()); 7 out.println("</HTML>"); 8 out.flush(); 9 out.close(); 10 }
时间: 2024-10-12 19:30:18