Reddit clone built using Spring Boot, Spring Security with JWT Authentication, Spring Data JPA with MySQL, Spring MVC. The frontend is built using Angular - You can find the frontend source code here - https://github.com/SaiUpadhyayula/angular-reddit-clone
Thank you for pointing out, I managed multiple versions of the source code while developing the tutorials, and I just realized, the repository is not up to date.
In the comment mapping add the user because the user id I was commenting on was not storing in the database
in my case just add @Mapping(target = "user", source = "user")