Open vahid-forghani opened 2 years ago
https://github.com/amezenin/encyclopedia-kn/blob/7e864bcb59032941b1b5756c027f829ee9387d52/src/main/java/com/knits/product/security/SecurityUser.java#L66
Here you shouldn't use spring User, you already created this nice SecurityUser which is the correct way so you just need to instantiate your class.
User
SecurityUser
https://github.com/amezenin/encyclopedia-kn/blob/7e864bcb59032941b1b5756c027f829ee9387d52/src/main/java/com/knits/product/security/SecurityUser.java#L66
Here you shouldn't use spring
User
, you already created this niceSecurityUser
which is the correct way so you just need to instantiate your class.