code:
error:
Hope you can get help
The problean has bean resolved. Thanks to the mongo technical forum, use MongoConverter to convert all your own types into types supported by the Mongo library.
Such as mongoConverter.convertToMongoType(value)