Getting Started with REST

  1. Create a new maven Dynamic Web app project named gettingstartedwithrest
  2. Rename the Java Resources/src/main/resources directory to Java Resources/src/main/java
  3. Update the POM file to this one
  4. Update the web.xml file to this one
  5. Run Maven/Update Project on your project
  6. In the gettingstartedwithrest package add the classes Hello.java and the classes StartApplication.java
  7. We are roughly using this tutorial to create the web application
  8. Check if it works by running http://localhost:8080/gettingstartedwithrest/hello in the browser
  9. You may see cannot change version of project facet Dynamic Web Module to 3.0. Here is the fix.