Servlet接口中有哪些方法?
生活随笔
收集整理的這篇文章主要介紹了
Servlet接口中有哪些方法?
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
Servlet接口定義了5個方法:
1、void init(ServletConfig config) throws ServletException
2、void service(ServletRequest req, ServletResponse resp) throws ServletException, java.io.IOException
3、void destory()
4、java.lang.String getServletInfo()
5、ServletConfig getServletConfig()
總結
以上是生活随笔為你收集整理的Servlet接口中有哪些方法?的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 说说数据库连接池工作原理和实现方案?
- 下一篇: request.getAttribute