Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

redis的password被重置为null #20

Closed
Edinjohn opened this issue May 9, 2019 · 2 comments
Closed

redis的password被重置为null #20

Edinjohn opened this issue May 9, 2019 · 2 comments

Comments

@Edinjohn
Copy link
Contributor

Edinjohn commented May 9, 2019

image
报错信息如下
image
我给自己的redis设了一个密码,但是在config.properties配置的redis.password值并不能带入到对象中去,导致验证失败。(其他值如Host,port是正确的)
你可以试一下给redis设置个密码

@dolyw
Copy link
Owner

dolyw commented May 9, 2019

image

@dolyw
Copy link
Owner

dolyw commented May 9, 2019

你在这里加下判断吧,判断password是否为空字符串,为空就执行下面那个,不为空执行上面那个(因为redis密码如果为空的话password不传null值,而传空字符串是连接不上的),改了可以提一个PR,我合并下,好多人都是redis连接的问题

@dolyw dolyw closed this as completed May 10, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants