Move things around

This commit is contained in:
2018-10-13 19:15:07 +03:00
parent 9c38800214
commit fa0dc0bd2c
6 changed files with 44 additions and 6 deletions

View File

@@ -0,0 +1,21 @@
package servlet.test;
import java.io.IOException;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
@WebServlet(urlPatterns = "/hello", name="Hello")
public class HelloServlet extends HttpServlet {
private static final long serialVersionUID = 1L;
protected void doGet(HttpServletRequest request,
HttpServletResponse response)
throws ServletException, IOException {
response.getWriter().print("Hello!");
}
}