doing this tutorial http://spring.io/guides/gs/rest-service/