使用的 MongoDB 3.4.1版本。
通过commone line 客户端连接、认证正常;
通过SpringMongodb 连接异常,提示:
Caused by: com.mongodb.MongoQueryException: Query failed with error code 13 and error message 'not authorized on sxw_ku to execute command { find: "statistic", filter: { startTime: new Date(1482883200000), teacherId: 126648, tenantId: 2 }, limit: 1, singleBatch: true }