javaee学习-新建servlet 直接返回html

 protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
     //1.直接返回html页面
response.setContentType("text/html");
PrintWriter out = response.getWriter();
out.print(this.getClass());
out.println("</HTML>");
out.flush();
out.close();
}
上一篇:企业项目开发--分布式缓存memcached(3)


下一篇:POJ2985 The k-th Largest Group[树状数组求第k大值+并查集||treap+并查集]