If the username or password contains a colon (???? or an at-sign (@) then it must be urlencoded

If the username or password contains a colon (:) or an at-sign (@) then it must be urlencoded

错误 原因连接mongoDB 的url 中 用户名 或密码出现了 @ 或 : 符号

url 中原本就带有 @ 和 : 用户名 或密码 再出现 这两个字符时就无法区分哪个是真正的分隔符

解决办法:

对@使用16进制进行URL编码:%40

对:使用16进制进行URL编码:%3A

用上面16进制的URL编码代替原本的字符就行了

相关文章:

  • 2021-05-22
  • 2022-12-23
  • 2021-08-06
  • 2021-10-26
  • 2021-05-27
  • 2021-10-08
猜你喜欢
  • 2021-10-04
  • 2022-12-23
  • 2021-06-10
  • 2021-10-09
  • 2021-05-18
相关资源
相似解决方案