mongoTemplete.getDb().runCommand(bson)报错:Command failed with error 13:‘not authorized on db to execu
mongoTemplete.getDb().runCommand(bson)报错:Command failed with error 13:‘not authorized on db to execute command’
1、确认mongo配置的用户要有权限操作;
2、调用方法确认是否正确:
BasicDBOBject bson = new BasicDBObject();
bson.put(“...
原创
2020-04-20 18:13:15 ·
1039 阅读 ·
0 评论