servlet創建

1.創建一個類,繼承HttpServlet類,並覆寫doGet()/doPost()方法(根據頁面請求方式而定) 2.在web.xml中 添加映射關係 3.然後運行項目,瀏覽器請求 127.0.0.1:8080/Servlet_01/hello
相關文章
相關標籤/搜索