錯誤記錄

一、mongodb插入數據失敗:mongodb

  E11000 duplicate key error collection: lion.車300_商用車 index: _id_ dup key: { : ObjectId('5acadd9f7d580f1f10378130') }io

解決:變量

  插入字典數據時,變量名稱不能同樣,須要從新定義,如不能一直使用self.data,而應該使從新定義一個空變量error

相關文章
相關標籤/搜索