I’m currently experiencing some issue trying to connect to my Mongo Atlas Serverless Cluster through a Spring Boot application.
I’ve seen that the version 2.5 of spring boot was not compatible due to outdated mongo-java driver.
Therefore I upgraded the project to version 2.7.3 hopping that would solve the connection issue, but it seems that the problem persists.
In the maven central repository there is not other version of the mongo-java-driver that 3.11.12 Maven Central Repository Search
The error message reported is the following one
Caused by: com.mongodb.MongoConfigurationException: A TXT record is only permitted to contain the keys [authsource, replicaset], but the TXT record for 'domain.mongodb.net' contains the keys [loadbalanced, authsource]
Thanks in advance for your guidance