Followed the Java rest service tutorial at

Machine: Windows10 => quick notes

Downloaded the trial version of IntelliJ IDEA at

Cloned the demo project in a random folder with

git clone

Import the project in the IDE

please select SDK: 1.8

Opted for  Maven

Initialisation with gs-rest-service\complete\pom.xml

From an earlier project Jenkins is hugging the default port 8080 but how to switch ports?

Generate a file src/main/resources/ en add the line


Then hit Run >> Application (Shift F10) in the IDE

this will fire up the C:\Program Files\Java\jdk1.8.0_144\bin\java.exe executable with tons of arguments

From the command line check that Tomcat is running:

INFO 3064 o.s.b.w.embedded.tomcat.TomcatWebServer : Tomcat initialized with port(s): 9090 (http)
INFO 3064 — [ main] o.apache.catalina.core.StandardService : Starting service [Tomcat]
INFO 3064 — [ main] org.apache.catalina.core.StandardEngine : Starting Servlet Engine: Apache Tomcat/8.5.34

Then in the browser request


and the REST service greets back.

For another very recent tutorial on this topic: