{"ok": 0.0, "errmsg": "BSONElement: bad type 54", "code": 10320, "codeName": "Location10320"}
解决方法:
mongoTemplate查询报错一下错误,但插入数据就换可以,网上也找不到解决方法,但我肯定的是数据库的数据有问题导致的。因为我的mongodb数据可是从阿里云mongodb的备份文件导进来,后来全部清空表格数据就恢复正常了。
Caused by: com.mongodb.MongoCommandException: Command failed with error 10320 (Location10320): 'BSONElement: bad type 54' on server 120.79.22.221:27017. The full response is {"ok": 0.0, "errmsg": "BSONElement: bad type 54", "code": 10320, "codeName": "Location10320"}