我需要在mongodb数据库中保存一个java对象。此对象中有另一个对象。当我尝试保存时,在控制台上收到错误消息: org.bson.codecs.configuration.CodecConfigurationException: Can't find a codec for问题是,我为class Item创建了编解码器,但是,注册它也不能工作。为了更好地理解这些类,请参阅这些类。Esse documento não tem um _id");
以下抛出的org.bson.codecs.configuration.CodecConfigurationException:无法找到类com.mongodb.client.model.geojson.Point.的编解码器import com.mongodb.client.model.geojson.Positiondbo.put("location", new Point(new Pos