Hey again, I understood all, but, I cant replicate your program, there is some missing code or steps to print that json? I added getters to the employee entity, and setters for the dto, I dont have a explicit constructor on the dto. Im mannaging to print the dto with the data (name, dpt,age) Im sure the object im returning is a dto -> return ResponseEntity.ok(employeeDto); but im getting "error": "Not Acceptable", that makes me wonder what im missing.
Im sorry mate, I just learned, in order for Spring to make a JSON you have to generate getters and setters, i missed the getters. Great tutorial, Im learning toons from you!
thank you so much for explaining in simple terms! Looking forward to learn more from your contents in depth and become a master in spring boot!!!!
Thanks bro ❤️
Good explanation, worth my time ☺️✨
Just dont stop please keep adding such content.
Sure
We need more videos for spring boot in details.
Thanks, for your effort and time.❤
Sure, Thanks 🙏
This is too good!!
Thanks bro 🙏❤️🙌
very good stuff , thanks for your time and effort 👏
Sure Thanks 🙏
Please do a video on domain driven setup as well
Sure
Could you please also write here something about Beans and DAO ?
Why should we use DTO, we can return directly entity itself if we dont need to modify any data inside entity while returning it as output
Yes you can do that. But you may not need to send all the fields inside entity to client. Such as ids or passwords
Hey again, I understood all, but, I cant replicate your program, there is some missing code or steps to print that json?
I added getters to the employee entity, and setters for the dto, I dont have a explicit constructor on the dto.
Im mannaging to print the dto with the data (name, dpt,age)
Im sure the object im returning is a dto -> return ResponseEntity.ok(employeeDto);
but im getting "error": "Not Acceptable", that makes me wonder what im missing.
Im sorry mate, I just learned, in order for Spring to make a JSON you have to generate getters and setters, i missed the getters.
Great tutorial, Im learning toons from you!
Great that you figured it out. I was about to highlight that after looking at your first comment. Great going. All the best 👍🏻🙌
Bro please make video on spring boot mvc
Sure
I am getting errors in EmployeeDTO class. can you please provide source code for this
🔥❤️
🙌❤️
repository make the interface instead of class
why should repository be interfaces? Need to know correct answer that I can tell to the interviewers