Open ymkNK opened 3 years ago
https://lllovol.com/mongo-bad/
mongo中的String主键长度为24,超过这个长度的,就会被转成长度为24的BSON ObjectId
然后后来自己发现,竟然又可以了!而且长度超过32的也完全设置成功成为string类型的……这就很诡异了……
这个坑解决了……是由于我使用了错误的annotation
support!
https://lllovol.com/mongo-bad/