Hi experts,
I have been trying very hard to work on the above without avail and I just can't get it right. My fundamentals is so
S H A K Y.......
Basically, I am using Spring Boot API where it says that I can
public class User
extends Object
implements UserDetails, CredentialsContainer
Models core user information retrieved by a UserDetailsService.
Developers may use this class directly, subclass it, or write their own UserDetails implementation from scratch.
So what I did is
I learnt from the past, we will have to bring in the super class variables(or the fields in that class - I hope I am clear about this part) but I do not know why it is not working out since there is a UserName there for sure...
Or did I misinterpret the instructions in the API, cos it mentioned subclass it so does it mean it cannot be a super class like what I have done ?
How do I subclass Spring Boot User class ?
I also learnt that I can override the method in the super class but there is not matter in Spring Boot ...I just need my User UserId to 'override' that of Spring Boot's.
Please let me know how to make this work.
Tks.