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 }