title: The import org.springframework.web cannot be resolved. Eclipse
body: <p>The import org.springframework.web cannot be resolved.</p>
  
  <p>Eclipse cannot import Spring libraries.</p>
  
  <pre><code>import java.util.ArrayList;
  import java.util.List;
  import java.util.Optional;
  import java.util.concurrent.atomic.AtomicLong;
  import org.springframework.web.bind.annotation.RequestMapping;
  import org.springframework.web.bind.annotation.RequestParam;
  import org.springframework.web.bind.annotation.RestController;
  import org.springframework.web.bind.annotation.PathVariable;
  import org.springframework.web.bind.annotation.GetMapping;
  import org.springframework.ui.Model;
  import task1.exception.NotFoundException;
  </code></pre>
  
  <p>My build.gradle file:</p>
  
  <pre><code>plugins {
  id 'org.springframework.boot' version '1.5.3.RELEASE'
  id 'java'
  }
  
  
  
  apply plugin: 'io.spring.dependency-management'
  apply plugin: 'eclipse'
  
  group = 'task1'
  version = '0.0.1-SNAPSHOT'
  sourceCompatibility = '1.8'
  
  repositories {
  mavenCentral()
  }
  
  dependencies {
  
  implementation 'org.springframework.boot:spring-boot-starter'
  testImplementation 'org.springframework.boot:spring-boot-starter-test'
   compile("org.springframework.boot:spring-boot-starter-web")
  }
  </code></pre>
  
  <p><img src="https://i.stack.imgur.com/cXqEW.png" alt="enter image description here"></p>
  
  <p>But when i build this project in terminal it already builds and run.</p>