你的位置:首页 > Java教程

[Java教程]javaee学习


 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 }