Hello,
I was using Jongo within a spring-boot application.
Recently I updated this application with the latest version of spring-boot and Jongo.
And my application is still running fine.
Jongo is not very active and still on the mongodb java driver 3.
So since I am using Kotlin in this application now. I would like to use Kmongo instead of Jongo. I have lots of Mongo shell queries.
I did the upgrade but I am running into problems.
My application is starting but I have to disable all my breakpoint to see the port 8080 open.
And my cpu goes up...and my REST queries cannot go through.
If I activate my breakpoints again, I never go to my controller.
I do not use mongo spring data.
and I disabled mongodb auto configuration.
@SpringBootApplication(exclude = [MongoAutoConfiguration::class, MongoDataAutoConfiguration::class, MongoReactiveAutoConfiguration::class])
Previously I excluded only MongoAutoConfiguration, but I did also try to with the 2 others classes to check if it will be better.
In my pom.xml, I am using:
<dependency>
<groupId>org.litote.kmongo</groupId>
<artifactId>kmongo</artifactId>
<version>${kmongo.version}</version>
</dependency>
<dependency>
<groupId>org.mongodb</groupId>
<artifactId>mongodb-driver-core</artifactId>
<version>${mongo-java-driver.version}</version>
</dependency>
<dependency>
<groupId>org.mongodb</groupId>
<artifactId>mongodb-driver-sync</artifactId>
<version>${mongo-java-driver.version}</version>
</dependency>
with
<kmongo.version>4.1.3</kmongo.version>
<mongo-java-driver.version>4.0.5</mongo-java-driver.version>
Do you have any ideas why ?
Thanks,
Valérie