老师好,还是MongoDB链接权限问题,我使用的MongoDB是从课程git上的网址下载的,然后版本如下:
yml配置,我也又复制了一遍:
但只要一运行程序,还是报错没有权限:
org.springframework.data.mongodb.UncategorizedMongoDbException: Command failed with error 13 (Unauthorized): ‘command insert requires authentication’ on server localhost:27017. The full response is {“ok”: 0.0, “errmsg”: “command insert requires authentication”, “code”: 13, “codeName”: “Unauthorized”}; nested exception is com.mongodb.MongoCommandException: Command failed with error 13 (Unauthorized): ‘command insert requires authentication’ on server localhost:27017. The full response is {“ok”: 0.0, “errmsg”: “command insert requires authentication”, “code”: 13, “codeName”: “Unauthorized”}
后来就连navicat,我都把用户权限赋上了,但还是insert不上,反复报上图没有认证权限的错误。
上网差了一些配置方法,尝试过之后仍不好使,想请老师帮忙看一下是哪里出了问题