开发者社区 问答 正文

Servlet接口中有哪些方法?

Servlet接口中有哪些方法?

展开
收起
范zzhaha 2021-10-27 18:05:29 475 分享 版权
1 条回答
写回答
取消 提交回答
  • Servlet接口定义了5个方法:

    • void init(ServletConfig config) throws ServletException

    • void service(ServletRequest req, ServletResponse resp) throws ServletException, java.io.IOException

    • void destory()

    • java.lang.String getServletInfo()

    • ServletConfig getServletConfig()

    2021-10-27 18:05:58
    赞同 展开评论