升级SpringBoot (2.x+JDK8--> 3.x+JDK17) Redis报错 NOAUTH HELLO must be called with the client

目录

1、Bug现场

2、发现蛛丝马迹

3、找到病根药病出

4、总结

5、参考文章


1、Bug现场

        最近打算把分布式服务接口幂等性设计相关知识总结一下;在参考了其他网络文章后打算升级SpringBoot2.x+JDK8升级到 SpringBoot3.x+JDK17(+);结果在启动程序时候调用相关接口通过Redis创建Token时候出现如下错误信息:

NOAUTH HELLO must be called with the client already authenticated, 
otherwise the HELLO <proto> AUTH <user> <pass> option can be used to authenticate the client and select the RESP protocol version at the same time 

io.lettuce.core.RedisCommandExecutionException: 
NOAUTH HELLO must be called with the client already authenticated, 
otherwise the HELLO <proto> AUTH <user> <pass> option 

can be used to authenticate the client and select the RESP protocol version at the same time at io.lettuce.core.internal.ExceptionFactory.createExecutionException(ExceptionFactory.java:147) ~[lettuce-core-6.3.2.RELEASE.j
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值