Example of how to use Spring to develop REST Service