Caused by: com.mongodb.MongoQueryException: Query failed with error code 2 and error message ‘Field ‘locale’ is invalid in: { locale: “comment” }’ on server localhost:27017
emm。。这个有很大概率是你将
@Document(collection = "xxx")
写成了
@Document(collation = "xxx")
万分神秘。。。。。。