title: How to set context root of a web app using spring 4.1 using annotations
body: <p>I am trying to set up a simple web app using spring annotations. I am referring to sample projects given in spring site. Can anyone let me know how can I set the context root to below given example?</p>
  
  <p><a href="https://github.com/spring-guides/tut-web/tree/master/6/complete" rel="nofollow">https://github.com/spring-guides/tut-web/tree/master/6/complete</a>.</p>
  
  <p>I can build it locally and access it as <code>http://localhost:8080/</code></p>
  
  <p>I want to access it like <code>http://localhost:8080/spring</code></p>
  
  <p>Thanks</p>