Spring make your life very easy while implementing REST web service, using Spring one can implement the WS very efficiently and quickly too.
Lets Start with the implementation
Pre-requisites
1) Working MVC Example
Integration
To implement the REST WS we just need to use @pathvariable annotation tag and rest will be take care by spring framework
@RequestMapping(value="ws/{name}" , method=RequestMethod.GET)
public String wsExample(@PathVariable String name,Model model){
model.addAttribute("myString", name);
return "success";
}
Compile the project and hit the url ${webapp_url}/ws/spring
once it reaches the request mapping the name variable define in signature will contain the value spring and similarly you can extend your WS by adding more @pathvariable
This is a basic example showing how to create REST WS using Spring.
Hope the article helped in basic integration, suggestion and feedbacks are welcome.

