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 }

 

posted on 2016-07-01 19:12  独坐台痕但观罗敷  阅读(1198)  评论(0编辑  收藏  举报