title: Spring boot starter web project : eclipse not able to resolve annotations @RestController and @RequestMapping
body: <p>I started to build spring boot project via following one of the online courses. When completed initial configuration and code, eclipse was not able to resolve @RestController and @RequestMapping annotations even though I have following in my POM file :</p>
  
  <pre><code>&lt;parent&gt;
  &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt;
  &lt;artifactId&gt;spring-boot-starter-parent&lt;/artifactId&gt;
  &lt;version&gt;1.3.1.RELEASE&lt;/version&gt;
  &lt;/parent&gt;
  </code></pre>
  
  <p>and in dependency section, I have:</p>
  
  <pre><code>&lt;dependency&gt;
      &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt;
      &lt;artifactId&gt;spring-boot-starter-web&lt;/artifactId&gt;
  &lt;/dependency&gt;
  </code></pre>