alibaba / jetcache

JetCache is a Java cache framework.
Apache License 2.0
5.08k stars 1.05k forks source link

密码校验失败情况:Illegal character in authority at index 8: redis://r0&2o7^NtDDD@127.0.0.1:6379 #891

Open zhengjiaao opened 4 months ago

zhengjiaao commented 4 months ago

remote: default: type: redis.lettuce # other choose:redis/redis.lettuce/redisson uri: redis://r0&2o7^NtDDD@127.0.0.1:6379 # redis://密码@IP:端口/库

错误: sed by: java.net.URISyntaxException: Illegal character in authority at index 8: redis://r0&2o7^NtDDD@127.0.0.1:6379

zhengjiaao commented 4 months ago

已找到解决方案,密码中存在特殊字符的,需要经过URL编码一次,例如:r0&2o7^NtDDD ---> r0%262o7%5ENtDDD

这个注意事项,建议哈可以补充到jetcache在线文档中,有点坑