Some of the newer MongoDB codecs (like the LocalDateTimeCodec) are not available for BasicDBObject which can lead to unexpected behaviour. toString() for example will fail with org.bson.codecs.configuration.CodecConfigurationException: Can't find a codec for class java.time.LocalDateTime. in case the BasicDBObject contains a value of that type.
Related to: spring-projects/spring-data-mongodb#3968
Some of the newer MongoDB codecs (like the
LocalDateTimeCodec
) are not available forBasicDBObject
which can lead to unexpected behaviour.toString()
for example will fail withorg.bson.codecs.configuration.CodecConfigurationException: Can't find a codec for class java.time.LocalDateTime.
in case theBasicDBObject
contains a value of that type.Related to: spring-projects/spring-data-mongodb#3968