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

/auth/login的时候空指针 #3

Open
kydxone opened this issue Sep 29, 2019 · 3 comments
Open

/auth/login的时候空指针 #3

kydxone opened this issue Sep 29, 2019 · 3 comments
Labels
question Further information is requested

Comments

@kydxone
Copy link

kydxone commented Sep 29, 2019

    String token = JwtTokenUtils.createToken(jwtUser.getUsername(), roles, rememberMe.get());
@Snailclimb
Copy link
Owner

Snailclimb commented Sep 29, 2019

    String token = JwtTokenUtils.createToken(jwtUser.getUsername(), roles, rememberMe.get());

具体错误信息有吗?可能和你没有传参数rememberMe的值有关。

{"username": "12356", "password": "123456","rememberMe":true}

@kydxone
Copy link
Author

kydxone commented Sep 29, 2019

确实如你所言。可以了。感谢。

@Snailclimb
Copy link
Owner

确实如你所言。可以了。感谢。

不客气!

@Snailclimb Snailclimb added the question Further information is requested label Oct 9, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants