标签:
01 |
< plugins > |
02 |
< plugin > |
03 |
< artifactId >maven-compiler-plugin</ artifactId > |
04 |
< version >3.0</ version > |
05 |
< configuration > |
06 |
< source >1.6</ source > |
07 |
< target >1.6</ target > |
08 |
</ configuration > |
09 |
</ plugin > |
10 |
</ plugins > |
01 |
@WebServlet ( "/helloMavenWebapp" ) |
02 |
public class HelloMavenWebappServlet extends HttpServlet{ |
03 |
private static final long serialVersionUID = 8963265462953694987L; |
04 |
@Override |
05 |
public void doGet(HttpServletRequest req, HttpServletResponse resp) |
06 |
throws ServletException, IOException { |
07 |
resp.getWriter().println( "Get:/helloMavenWebapp" ); |
08 |
} |
09 |
|
10 |
@Override |
11 |
public void doPost(HttpServletRequest req, HttpServletResponse resp) |
12 |
throws ServletException, IOException { |
13 |
resp.getWriter().println( "Post:/helloMavenWebapp" ); |
14 |
} |
15 |
} |
标签:
原文地址:http://www.cnblogs.com/seely/p/4522288.html