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