作者:niaonao----感谢原创,感谢作者!!
标签:servlet 接口类 web应用 生命周期 dopost
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
|
<pre code_snippet_id=
"2245681"
snippet_file_name=
"blog_20170306_1_691574"
name=
"code"
class
=
"java"
>
import
java.io.IOException;
import
javax.servlet.Servlet;
import
javax.servlet.ServletConfig;
import
javax.servlet.ServletException;
import
javax.servlet.ServletRequest;
import
javax.servlet.ServletResponse;
public
class
TestServlet
implements
Servlet{
@Override
public
void
destroy() {
// TODO Auto-generated method stub
}
@Override
public
ServletConfig getServletConfig() {
// TODO Auto-generated method stub
return
null
;
}
@Override
public
String getServletInfo() {
// TODO Auto-generated method stub
return
null
;
}
@Override
public
void
init(ServletConfig arg0)
throws
ServletException {
// TODO Auto-generated method stub
}
@Override
public
void
service(ServletRequest arg0, ServletResponse arg1)
throws
ServletException, IOException {
// TODO Auto-generated method stub
}
}</pre>
|