Building a RESTful Web Service with Spring 3.1 and Java based Configuration
baeldung.com
How to build a RESTful Web Service with Spring 3.1 and Java based Configuration, part 2. Focus on setting up REST in Spring, the Controller and HTTP response codes, configuration of payload marshalling and content negotiation