前端报错 No converter found capable of converting from type [org.bson.BsonUndefined] to type [java.lang.Integer] 排查 由于库中存在undefined的type类型所以首先去表中把字段为undefined的找出来清除即可 db.gift_card.update({price:{$type:"undefined"}},{$unset:{price:""}},{multi:1}); 剩下就是找代码bug解决即可 问题 todo 如果不知道哪个字段为undefined怎么查询?