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
'post.getUser()' should be 'authService.getCurrentUser()' or you are gonna get a null pointer exception. and thanks for the tutorial. https://github.com/SaiUpadhyayula/spring-reddit-clone/blob/ebbdb5eab3bad8de69d8ac50342fd7ac6e50d7b7/src/main/java/com/programming/techie/springredditclone/service/CommentService.java#L39-L40