IntelliJ IDEA
 
Get IntelliJ IDEA

Tutorial: Your first RESTful web service

Last modified: 11 October 2024

This tutorial describes how to create a simple RESTful web service in IntelliJ IDEA and deploy it to the Tomcat application server. The service will output Hello, World! when you access a specific URL through the web browser or otherwise send a GET request to this URL. Use the switcher at the top of this page for instructions for a different application server.

You will create a new Java Enterprise project, add the necessary Java code, tell IntelliJ IDEA where your Tomcat server is located, then use a run configuration to build the artifact, start the server, and deploy the artifact to it.

Here is what you will need: