Please follow this tutorial
and the video on you tube
Make sure you have same page as below.
Building a RESTful Web Service
This guide walks you through the process of creating a “hello world” RESTful web service with Spring.
What you’ll build
You’ll build a service that will accept HTTP GET requests at: