servlet中實現servlet接口和繼承HttpServlet類的區別

實現servlet接口必須實現接口中所有的方法,而繼承HttpServlet類可以只重寫類中的一個或多個方法   實現servlet接口 繼承HttpServlet 下面是github地址:https://github.com/nicesmile01/nice_servlet.git
相關文章
相關標籤/搜索