ERR Client sent AUTH, but no password is set

今天项目中尝试添加redisson依赖,一些配置添加完成之后项目启动,就会出现这样“ERR Client sent AUTH, but no password is set… Unable to connect to Redis server”等一连串错误。我已经设置了redis密码,并且redis已经正常启动。那到底是什么原因呢?

尝试cmd启动redis试试,看看会是什么效果呢?
ERR Client sent AUTH, but no password is set
于是怀疑是“redis.windows.conf”文件出现问题。百度“# requirepass foobared”是因为修改密码"requirepass 123456"后,未将# 和 requirepass 之间空格删除。
现在将修改前后的配置贴出来:
修改前:
ERR Client sent AUTH, but no password is set
修改后:
ERR Client sent AUTH, but no password is set
特此记录,以后避免这样的低级错误吧。