title: how to import spring-boot-starter-data-solr in spring boot 2.6.4
body: <p>I'm studying using solr in springboot, I try the program in a book, the spring-boot-starter-parent version is 2.1.2.RELEASE in the book:</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;2.1.2.RELEASE&lt;/version&gt;
          &lt;relativePath/&gt; &lt;!-- lookup parent from repository --&gt;
      &lt;/parent&gt;
  </code></pre>
  <p>while my spring-boot-starter-parent version is 2.6.4:</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;2.6.4&lt;/version&gt;
          &lt;relativePath/&gt; &lt;!-- lookup parent from repository --&gt;
      &lt;/parent&gt;
  </code></pre>
  <p>and I add the solr dependency in pom.xml like this:</p>
  <pre><code>&lt;dependency&gt;
              &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt;
              &lt;artifactId&gt;spring-boot-starter-data-solr&lt;/artifactId&gt;
          &lt;/dependency&gt;
  </code></pre>
  <p>but the pom.xml shows error: The version cannot be empty, so I go to <a href="https://mvnrepository.com/" rel="nofollow noreferrer">https://mvnrepository.com/</a> and find the latest spring-boot-starter-data-solr version is 2.4.13, so I add the solr dependcy like this:</p>
  <pre><code>&lt;dependency&gt;
              &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt;
              &lt;artifactId&gt;spring-boot-starter-data-solr&lt;/artifactId&gt;
              &lt;version&gt;2.4.13&lt;/version&gt;
          &lt;/dependency&gt;
  </code></pre>
  <p>the pom.xml has no error now, but the java program which import solr still not work, such as:</p>
  <pre><code>import org.apache.solr.client.solrj.SolrClient;
  import org.apache.solr.client.solrj.SolrQuery;
  import org.apache.solr.client.solrj.SolrServerException;
  </code></pre>
  <p>it cannot find any class about solr. I also try to download the spring-boot-starter-data-solr jar in <a href="https://mvnrepository.com/" rel="nofollow noreferrer">https://mvnrepository.com/</a>, and I import it locally, but I only find a META-INF document in the spring-boot-starter-data-solr jar downloaded, it doesn't have any classes</p>
  <p>so how should I use solr in springboot?</p>