How to resolve -- NoSuchMethodError: com.mongodb.client.MongoCollection.insertMany

Hey @Jeffrey_Yemin

When I removed it – the application doesn’t work(I guess it’s Important )
Someone suggested me to use – implementation ‘org.mongodb:mongo-java-driver:3.11.2’
Spring Data MongoDB builds on top of MongoDB’s Java driver. It uses it to communicate with a MongoDB instance. To use Spring Data MongoDB you need both it and the Java driver and accroding to the Changlog the last supported version is 3.11.2 .
But even this doesn’t work …it gave me this error –

An attempt was made to call a method that does not exist. The attempt was made from the following location: org.springframework.boot.autoconfigure.mongo.MongoPropertiesClientSettingsBuilderCustomizer.applyUuidRepresentation(MongoPropertiesClientSettingsBuilderCustomizer.java:67) The following method did not exist: com.mongodb.MongoClientSettings$Builder.uuidRepresentation(Lorg/bson/UuidRepresentation;)Lcom/mongodb/MongoClientSettings$Builder

I guess the – springframework.boot:spring-boot-starter-data-mongodb:2.6.3 is also using –

org.mongodb:mongodb-driver-core:4.4.1 (which is also creating conflict)and the other issue I mentioned above also , it's showing -- Correct the classpath of your application so that it contains compatible versions of the classes -- org.springframework.boot.autoconfigure.mongo.MongoPropertiesClientSettingsBuilderCustomizer and com.mongodb.MongoClientSettings$Builder