为什么Post()请求不了点不进去
public class HelloServlet extends HttpServlet { @Override protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { PrintWriter out=response.getWriter(); System.out.println("处理Get()请求...."); response.setContentType("text/html;charset=UFT-8"); out.println("<strong>HttpServlet</strong><br/>"); } @Override protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { PrintWriter out=response.getWriter(); System.out.println("处理Post()请求...."); response.setContentType("text/html;charset=UFT-8"); out.println("<strong>HttpServlet</strong><br/>"); } }
处理Get()请求...
处理Get()请求....