title: How to install the Springframework CrudRepository?
body: <p>I'm following <a href="http://www.thejavageek.com/2017/06/16/crud-application-using-angular-4-spring-rest-web-services-spring-data-jpa/" rel="nofollow noreferrer">this tutorial</a> to create a CRUD application with Spring. I want to create a repository and I want it to extend the Spring CrudRepository:</p>
  
  <pre><code>package com.movieseat.repositories;
  
  import java.io.Serializable;
  
  import org.springframework.data.repository.CrudRepository;
  import org.springframework.stereotype.Repository;
  
  
  import com.movieseat.models.Movie;
  
  public interface MovieRepository extends CrudRepository&lt;Movie, Serializable&gt; {}
  </code></pre>
  
  <p>Visual Studio Code is saying:</p>
  
  <blockquote>
    <p>The import org.springframework.data cannot be resolved</p>
  </blockquote>
  
  <p>I've removed the repository folder in the .m2 folder and do a reinstall but still no success. </p>
  
  <p>I think I'm missing a dependency in my pom.xml file but I can't found it which one.</p>
  
  <p>//edit. Sharing the pom.xml that's in the back-end folder:</p>
  
  <pre><code>    &lt;project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
              xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"&gt;
          &lt;modelVersion&gt;4.0.0&lt;/modelVersion&gt;
  
          &lt;artifactId&gt;backend&lt;/artifactId&gt;
  
          &lt;name&gt;backend&lt;/name&gt;
          &lt;description&gt;The backend project&lt;/description&gt;
  
          &lt;parent&gt;
              &lt;groupId&gt;com.jdriven.ng2boot&lt;/groupId&gt;
              &lt;artifactId&gt;parent&lt;/artifactId&gt;
              &lt;version&gt;0.0.1-SNAPSHOT&lt;/version&gt;
          &lt;/parent&gt;
  
          &lt;properties&gt;
              &lt;!-- The main class to start by executing java -jar --&gt;
              &lt;start-class&gt;com.movieseat.Application&lt;/start-class&gt;
          &lt;/properties&gt;
  
          &lt;dependencies&gt;
              &lt;dependency&gt;
                  &lt;groupId&gt;org.springframework&lt;/groupId&gt;
                  &lt;artifactId&gt;spring-context&lt;/artifactId&gt;
              &lt;/dependency&gt;
  
              &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;
  
              &lt;dependency&gt;
                  &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt;
                  &lt;artifactId&gt;spring-boot-starter-test&lt;/artifactId&gt;
                  &lt;scope&gt;test&lt;/scope&gt;
              &lt;/dependency&gt;
  
              &lt;dependency&gt;
                  &lt;groupId&gt;com.jdriven.ng2boot&lt;/groupId&gt;
                  &lt;artifactId&gt;frontend&lt;/artifactId&gt;
                  &lt;version&gt;${project.version}&lt;/version&gt;
                  &lt;scope&gt;runtime&lt;/scope&gt;
              &lt;/dependency&gt;
  
              &lt;dependency&gt;
                  &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt;
                  &lt;artifactId&gt;spring-boot-devtools&lt;/artifactId&gt;
                  &lt;optional&gt;true&lt;/optional&gt;
              &lt;/dependency&gt;
          &lt;/dependencies&gt;
  
          &lt;build&gt;
              &lt;plugins&gt;
                  &lt;plugin&gt;
                      &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt;
                      &lt;artifactId&gt;spring-boot-maven-plugin&lt;/artifactId&gt;
                  &lt;/plugin&gt;
              &lt;/plugins&gt;
          &lt;/build&gt;
      &lt;/project&gt;
  </code></pre>