io.lettuce.core.RedisCommandExecutionException: NOAUTH Authentication required.

报错信息:

浏览器中的报错信息

IDEA中的报错信息

报错原因:

SpringBoot整合Redis使用的默认配置,但是我们设置了Redis的密码,而默认配置中密码是为空的,导致不能够连接

浏览器中的报错信息

There was an unexpected error (type=Internal Server Error, status=500).

Unable to connect to Redis

org.springframework.data.redis.RedisConnectionFailureException: Unable to connect to Redis

IDEA中的报错信息
2024-01-12T14:58:40.297+08:00 ERROR 10516 --- [nio-8080-exec-1] o.a.c.c.C.[.[.[/].[dispatcherServlet]    : Servlet.service() for servlet [dispatcherServlet] in context with path [] threw exception [Request processing failed: org.springframework.data.redis.RedisConnectionFailureException: Unable to connect to Redis] with root cause

io.lettuce.core.RedisCommandExecutionException: NOAUTH Authentication required.

 

解决方案: 

在application.properties配置文件中加一行Redis服务器的连接密码的配置

spring.data.redis.password=123456

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值