Last active
May 15, 2018 02:30
-
-
Save backslash112/d224d1beddbf680f5939370cca80e9a2 to your computer and use it in GitHub Desktop.
Blog: Create Maven Project with Servlet in IntelliJ IDEA 2018
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@WebServlet("/DemoServlet") | |
public class DemoServlet extends HttpServlet { | |
protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { | |
response.setContentType("text/html"); | |
PrintWriter out = response.getWriter(); | |
out.println("<h3>Hello World!</h3>"); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment