title: @SpringBootApplication cannot be resolved to a type for Spring Boot version 2.0.3
body: <p>I have created a project using Spring Initializr with Spring Boot V-2.0.3
  I am using STS 3.9.4 on Ubuntu Machine.</p>
  
  <p>I am getting these errors: </p>
  
  <pre><code>The import org.springframework.boot.autoconfigure.SpringBootApplication cannot be resolved
  
  SpringBootApplication cannot be resolved to a type 
  </code></pre>
  
  <p>I have already tried deleting the repository folder from .m2 folder and hitting the following commands</p>
  
  <pre><code>mvn clean dependency:tree
  mvn clean compile
  </code></pre>
  
  <p>But still errors were not resolved than I added an Extra Dependency to the POM file</p>
  
  <pre><code>&lt;!-- https://mvnrepository.com/artifact/org.springframework.boot/spring-boot-autoconfigure --&gt;
  &lt;dependency&gt;
      &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt;
      &lt;artifactId&gt;spring-boot-autoconfigure&lt;/artifactId&gt;
      &lt;version&gt;2.0.3.RELEASE&lt;/version&gt;
  &lt;/dependency&gt;
  </code></pre>
  
  <p>I have updated the project by following the below steps after each step performed but still the error is not resolved.</p>
  
  <pre><code>STS Right click on project -&gt; Maven -&gt; Update Project
  </code></pre>