title: Spring Boot with Cassandra 3.x driver
body: <p>I use Spring boot <code>1.3.8.RELEASE</code>. To use cassandra 3.x driver i tried something like below;</p>
  
  <pre><code>    &lt;dependency&gt;
          &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt;
          &lt;artifactId&gt;spring-boot-starter-data-cassandra&lt;/artifactId&gt;
          &lt;exclusions&gt;
              &lt;exclusion&gt;
                  &lt;groupId&gt;org.springframework.data&lt;/groupId&gt;
                  &lt;artifactId&gt;spring-data-cassandra&lt;/artifactId&gt;
              &lt;/exclusion&gt;
          &lt;/exclusions&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;org.springframework.data&lt;/groupId&gt;
          &lt;artifactId&gt;spring-data-cassandra&lt;/artifactId&gt;
          &lt;version&gt;1.4.0.RELEASE&lt;/version&gt;
          &lt;exclusions&gt;
              &lt;exclusion&gt;
                  &lt;groupId&gt;com.datastax.cassandra&lt;/groupId&gt;
                  &lt;artifactId&gt;cassandra-driver-core&lt;/artifactId&gt;
              &lt;/exclusion&gt;
              &lt;exclusion&gt;
                  &lt;groupId&gt;com.datastax.cassandra&lt;/groupId&gt;
                  &lt;artifactId&gt;cassandra-driver-dse&lt;/artifactId&gt;
              &lt;/exclusion&gt;
          &lt;/exclusions&gt;
      &lt;/dependency&gt;
      &lt;!-- https://mvnrepository.com/artifact/com.datastax.cassandra/cassandra-driver-core --&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;com.datastax.cassandra&lt;/groupId&gt;
          &lt;artifactId&gt;cassandra-driver-core&lt;/artifactId&gt;
          &lt;version&gt;3.1.0&lt;/version&gt;
      &lt;/dependency&gt;
  </code></pre>
  
  <p>But i get error;</p>
  
  <pre><code>Caused by: java.lang.NoSuchMethodError: com.datastax.driver.core.DataType.asJavaClass()Ljava/lang/Class;
  at org.springframework.data.cassandra.mapping.CassandraSimpleTypeHolder.&lt;clinit&gt;(CassandraSimpleTypeHolder.java:62) ~[spring-data-cassandra-1.4.0.RELEASE.jar:?]
  </code></pre>
  
  <p>I tried this cause at <a href="https://github.com/spring-projects/spring-boot/issues/5835" rel="nofollow noreferrer">https://github.com/spring-projects/spring-boot/issues/5835</a> , there is a post ;</p>
  
  <blockquote>
    <p>Adopting the Cassandra 3 changes in Spring Data Cassandra 1.5
    (Ingalls) does not impose breaking changes for Spring Boot. <strong>Tested
    the upgrade with Boot 1.3.3 and 1.4.0-SNAPSHOT.</strong></p>
  </blockquote>
  
  <p>Isn't it supposed to be like above?
  Where i am wrong?</p>
  
  <p><strong>NOTE:</strong> I was trying this example: <a href="https://github.com/spring-projects/spring-boot/tree/master/spring-boot-samples/spring-boot-sample-data-cassandra" rel="nofollow noreferrer">https://github.com/spring-projects/spring-boot/tree/master/spring-boot-samples/spring-boot-sample-data-cassandra</a></p>