title: An attempt was made to call a method that does not exist, mongo-java-driver , mongobee
body: <p>I am using MongoBee for migration, getting exception on <strong>mongoTemplate.insertAll(airports);</strong></p>
  <pre><code>@ChangeLog(order = &quot;001&quot;)
  public class DbChangeLog001 {
      @ChangeSet(order = &quot;001&quot;, id = &quot;seedProduct&quot;, author = &quot;San&quot;)
      public void seedProduct(MongoTemplate mongoTemplate) {
          Product rome = new Product(&quot;Name&quot; , &quot;45.9&quot;,&quot;Desc&quot;);
          Product paris = new Product(&quot;Name&quot; , &quot;45&quot;,&quot;Desc&quot;);
          Product copenhagen = new Product(&quot;Name&quot; , &quot;45&quot;,&quot;Desc&quot;);
          List&lt;Product&gt; airports = Arrays.asList(rome, paris, copenhagen);
          mongoTemplate.insertAll(airports);
      }
  }
  </code></pre>
  <p>The issue is caused by dependencies, I know, but don't know how to solve the issue</p>
  <pre><code>dependencies {
      implementation 'org.springframework.boot:spring-boot-starter-data-rest'
      testImplementation('org.springframework.boot:spring-boot-starter-test') {
          exclude group: 'org.junit.vintage', module: 'junit-vintage-engine'
      }
      implementation 'org.springdoc:springdoc-openapi-ui:1.4.3'
      implementation 'org.springframework.cloud:spring-cloud-starter-netflix-eureka-client'
      implementation 'org.springframework.boot:spring-boot-starter-actuator'
      developmentOnly 'org.springframework.boot:spring-boot-devtools'
      implementation 'org.springframework.cloud:spring-cloud-starter-config'
      implementation 'org.springframework.boot:spring-boot-starter-data-mongodb'
  
      compile &quot;org.mongodb:mongo-java-driver:3.12.6&quot;
      compile 'org.javassist:javassist:3.18.2-GA' // workaround for ${javassist.version} placeholder issue*
      compile('com.github.mongobee:mongobee:0.13') {
          exclude group: 'org.mongodb'
      }
  }
  </code></pre>
  <p>From the Mongobee document there is a know issue</p>
  <pre><code>mongobee depends on mongo-java-driver. If your application has mongo-java-driver dependency too, there could be a library conflicts in some cases.
  </code></pre>
  <p>They have shown a workaround method as</p>
  <pre><code>&lt;dependency&gt;
      &lt;groupId&gt;org.mongodb&lt;/groupId&gt;
      &lt;artifactId&gt;mongo-java-driver&lt;/artifactId&gt;
      &lt;version&gt;3.0.0&lt;/version&gt;
  &lt;/dependency&gt;
  
  &lt;dependency&gt;
    &lt;groupId&gt;com.github.mongobee&lt;/groupId&gt;
    &lt;artifactId&gt;mongobee&lt;/artifactId&gt;
    &lt;version&gt;0.9&lt;/version&gt;
    &lt;exclusions&gt;
      &lt;exclusion&gt;
        &lt;groupId&gt;org.mongodb&lt;/groupId&gt;
        &lt;artifactId&gt;mongo-java-driver&lt;/artifactId&gt;
      &lt;/exclusion&gt;
    &lt;/exclusions&gt;
  &lt;/dependency&gt;
  </code></pre>
  <p>I have followed the same instruction removed the mongodb dependency from Mongobee, but cause me a new error</p>
  <pre><code>Description:
  
  An attempt was made to call a method that does not exist. The attempt was made from the following location:
  
      org.springframework.data.mongodb.core.MongoTemplate.lambda$insertDocumentList$16(MongoTemplate.java:1468)
  
  The following method did not exist:
  
      'com.mongodb.client.result.InsertManyResult com.mongodb.client.MongoCollection.insertMany(java.util.List)'
  
  The method's class, com.mongodb.client.MongoCollection, is available from the following locations:
  
      jar:file:/Users/macbook/.gradle/caches/modules-2/files-2.1/org.mongodb/mongo-java-driver/3.12.6/357010b0cdc0e6b2e1fc62e589be4a2c1e0050d1/mongo-java-driver-3.12.6.jar!/com/mongodb/client/MongoCollection.class
      jar:file:/Users/macbook/.gradle/caches/modules-2/files-2.1/org.mongodb/mongodb-driver-sync/4.0.4/3f1538a82a5a8ba8d41f22dd61bb17b30f1a9407/mongodb-driver-sync-4.0.4.jar!/com/mongodb/client/MongoCollection.class
  
  The class hierarchy was loaded from the following locations:
  
      com.mongodb.client.MongoCollection: file:/Users/macbook/.gradle/caches/modules-2/files-2.1/org.mongodb/mongo-java-driver/3.12.6/357010b0cdc0e6b2e1fc62e589be4a2c1e0050d1/mongo-java-driver-3.12.6.jar
  </code></pre>