For a detailed walk-through of this sample, please visit this blog post.
A basic Spring app that obtains cloud services using spring-cloud