Diber-backend icon indicating copy to clipboard operation
Diber-backend copied to clipboard

Lombok annotations

Open atereshkov opened this issue 7 years ago • 3 comments

http://www.baeldung.com/intro-to-project-lombok https://programmingmitra.blogspot.com.by/2017/01/Project-Lombok-The-Boilerplate-Code-Extractor.html

atereshkov avatar Aug 07 '17 18:08 atereshkov

HI, I saw your project and its pretty impressing. I am new at Spring framework, and I am going to use it on my school project. But, i can't get the access token for admin via this command.
curl -X POST -vu clientapp:123456 http://localhost:8080/oauth/token -H "Accept: application/json" -d "password=spring&username=admin&grant_type=password&scope=read%20write&client_secret=123456&client_id=clientapp"

Can you tell me how at get the token and access as a user.

Thank you

hitman3r44 avatar Dec 22 '18 09:12 hitman3r44

@hitman3r44 what kind of error did you get? And have you checked this article?

atereshkov avatar Dec 26 '18 12:12 atereshkov

Thanks for the reply, i read that article, after getting the token i can't retrieve the user info, it get null pointer error in userDto. I tried to login via webclient, in controller user model object as get as null. Can't understand is there any problem with authentication

hitman3r44 avatar Dec 26 '18 12:12 hitman3r44