ssm整合redis报Could not get a resource from the pool,ERR Client sent AUTH, but no password is set

周末在家整合ssm和redis,运行时,报了
ssm整合redis报Could not get a resource from the pool,ERR Client sent AUTH, but no password is set
ssm整合redis报Could not get a resource from the pool,ERR Client sent AUTH, but no password is set客户端发送了验证,而Redis服务器没有设置密码。
修改了redis.properties中的password也没解决。

解决方法:
1、我的是Win7的,启动时,运行的是redis目录下的redis.windows.conf。这个文件中的
Requirepass默认是注释掉的,即无密码,只要设置下密码就好。 修改后,重启下redis服务就好。
ssm整合redis报Could not get a resource from the pool,ERR Client sent AUTH, but no password is set
2、另一种方法,按Win+R,输入cmd,进入redis目录,执行redis-cli.exe
127.0.0.1:6379>auth 123456
如果是ok 则密码是123456
如果是ERR Client sent AUTH, but no password is set或ERR invalid password
则说明密码没有设置或密码错误
用config set requirepass root,将密码设置为root
显示ok,则表示设置成功(auth密码别忘记检查是否一致),重启服务后试试。
3、又或者,你可以直接不传auth验证,
ssm整合redis报Could not get a resource from the pool,ERR Client sent AUTH, but no password is set
不过我发现,不管我传不传auth, redis.properties中的password都没起作用。。。