Spring Boot DTO Example Tutorial | Data Transfer Object Pattern | Line By Line Coding 🔥

  Рет қаралды 105,164

Java Guides

Java Guides

2 жыл бұрын

In this video, we will create an example to demonstrate how to use DTO in the Spring boot application.
GitHub repository at github.com/RameshMF/springboo...
#springboot #dto #javaguides
My Top 10+Udemy Courses (Bestseller Courses):
1. Spring 6 & Spring Boot 3 for Beginners (Includes 5 Projects):
www.udemy.com/course/learn-sp...
2. Building Real-Time REST APIs with Spring Boot - Blog App:
www.udemy.com/course/building...
3. Building Microservices with Spring Boot and Spring Cloud:
www.udemy.com/course/building...
4. Testing Spring Boot App with JUnit, Mockito & Testcontainers:
www.udemy.com/course/testing-...
5. Spring Boot 3 Thymeleaf REAL-TIME Web Application - Blog App:
www.udemy.com/course/spring-b...
6. Master Spring Data JPA with Hibernate:
www.udemy.com/course/master-s...
7. Spring Boot + Apache Kafka Course:
www.udemy.com/course/spring-b...
8. Spring Boot 3 + RabbitMQ Course:
www.udemy.com/course/spring-b...
9. Learn Thymeleaf with Spring Boot 3:
www.udemy.com/course/learn-th...
Check all my Udemy courses and discount coupons:
www.javaguides.net/p/my-udemy...
Visit My Top Java Guides Blog: www.javaguides.net/

Пікірлер: 74
@javatechnology4481
@javatechnology4481 2 жыл бұрын
Informative video with unique information. You are awesome👏. Love keyboard keys sound 🙂
@htcsaj7876
@htcsaj7876 2 жыл бұрын
Great video as always Ramesh. Is it ok to follow tutorial and then change some css and put it on my repository, I am beginner
@devilsemi1
@devilsemi1 2 жыл бұрын
this man is a genius, covered almost every aspects of how to design a microservice in just 30 minutes video.
@weedcoffeshopbarcelona6112
@weedcoffeshopbarcelona6112 Жыл бұрын
GRACIAS HERMANO, CON MI NIVEL DE INGLES INTERMEDIO, ENTENDI A LA PERFECCION, Y NO EXISTE NADA MEJOR EN LOS ESTUDIOS QUE UN PROFESOR QUE ENSEÑE DE MANERA SIMPLIFICADA, MUCHAS GRACIAS, THANKS MY BRO
@ifinatychal
@ifinatychal Жыл бұрын
Great tutorial. Simple and straight-forward! Thanks :)
@cristianomartorreschegue8438
@cristianomartorreschegue8438 2 жыл бұрын
Thanks for the video I learned a lot and finally I was able to understand how a DTO works
@thomasmoore3291
@thomasmoore3291 2 жыл бұрын
Great explanation and example. Also helped solve an issue I've been dealing with the past few days!
@gabrielfono844
@gabrielfono844 Жыл бұрын
as backend engineer, I can attest this dude trully understand springboot for sure. he is probably an instructor. tnanks for providing such amazing content. as junior developer working as full stack developer since 7 months, I just want to say thanks I own you a bag my G thanks again
@never_give_up944
@never_give_up944 Ай бұрын
You mean "can attest" right?
@TheSesameStreetGang
@TheSesameStreetGang Жыл бұрын
Amazing video, thanks for the help!
@petarJK
@petarJK 2 жыл бұрын
Great video! Loving the channel!
@pauliewalnuts6734
@pauliewalnuts6734 Жыл бұрын
THIS WAS AWESOME! thank you so much for helping me keep my job 🤣
@gabrielfono844
@gabrielfono844 Жыл бұрын
I will purchase this course for sure. the only thing I hope it is updated. but will purchase it anyway. you have prooved me you know what you are doing for sure.
@robertoenriquechavezrodrig731
@robertoenriquechavezrodrig731 2 жыл бұрын
Thank you, man, your videos are awesome!!! Regards from Russia!
@meenajadhav5533
@meenajadhav5533 2 жыл бұрын
Learning a lot from your video's.
@CodeWithIan
@CodeWithIan 2 жыл бұрын
Great explanation!
@mahindracochin7893
@mahindracochin7893 2 жыл бұрын
Excellent Tutorial....Thank you so much
@tamlq97
@tamlq97 Жыл бұрын
Thank you sir, this video was what i am looking for,
@user-oq2qz1st3f
@user-oq2qz1st3f Жыл бұрын
Отличный урок👍
@thabtiguenidi2960
@thabtiguenidi2960 8 ай бұрын
thank you, your explication is very easy
@mohamedelmakioui6612
@mohamedelmakioui6612 Жыл бұрын
Thanks bro, you helped me a lot
@sunnykosle8865
@sunnykosle8865 2 жыл бұрын
very informative video keep it up and thanks
@Kiran08357
@Kiran08357 2 жыл бұрын
Just Awesome!!!!!!
@rickhunter8216
@rickhunter8216 10 ай бұрын
Excelente tutorial bro. Your English is good.
@getitcleared4109
@getitcleared4109 6 ай бұрын
Everyone knows how valuable u r for Java developers
@rahul-java-dev
@rahul-java-dev 2 жыл бұрын
Thank you Sir...
@ulyssegovi9327
@ulyssegovi9327 2 жыл бұрын
Great Work
@Aeviles1
@Aeviles1 2 жыл бұрын
Thanks!
@ysacpebes1462
@ysacpebes1462 2 жыл бұрын
muchas gracias 😃
@monk4857
@monk4857 Жыл бұрын
nice video thanks
@syedfaizan5841
@syedfaizan5841 11 ай бұрын
Thanks
@s_cube8543
@s_cube8543 Жыл бұрын
Superb
@amanuellebassi7294
@amanuellebassi7294 Жыл бұрын
You are amazing
@harishchandra8057
@harishchandra8057 2 жыл бұрын
Thankyou 😇
@lukasz8r
@lukasz8r 2 жыл бұрын
Great! :) :)
@tu4n59
@tu4n59 2 жыл бұрын
Thank you
@marioamado7385
@marioamado7385 3 ай бұрын
Hi, i see that you have not post mapping to save the user and location in the controller. it means with H2 database is suffice to put all the information we need in the bootstrap of the application and then use the repository to retrieve the data?
@bastwido9875
@bastwido9875 2 жыл бұрын
nice !
@ivanmartinsk
@ivanmartinsk 2 жыл бұрын
Now that i have all of this in my project wit DTOs and so. How would you implement a JSF view with the data generated in this DTOs?? Imagine for example de a CRUD app with a table, that list all elements in the DB. How do I interact with the DTOs??
@Khadrius
@Khadrius 11 ай бұрын
Please, I have a question. Which package should I use to store the convertEntityToDTO methods? Is it right to have it on service class and package?
@ramosespann6496
@ramosespann6496 2 жыл бұрын
Very Good , do you have videos about Login and registration with roles in Spring Boot and angular?
@PrinceJeniFX
@PrinceJeniFX Жыл бұрын
Please which app do you use to record your screen
@manutyagi8019
@manutyagi8019 Жыл бұрын
Good morning sir, Can we update multiple tables using dto in spring boot?
@krishind99
@krishind99 2 жыл бұрын
Nicely paced tutorial. Are there any restrictions with this approach, especially in terms of size of data. What if we have millions of records in DB. Is it optimized to work?
@JavaGuides
@JavaGuides 2 жыл бұрын
For large data, server can send the data as per clients expectations ( in chucks) or provide pagination. There are different approaches to handle large amount of data. This is just example to showcase usage of DTO in spring boot.
@krishind99
@krishind99 2 жыл бұрын
@@JavaGuides Thanks for your quick response. I have been building services on all languages but Java. I'm seriously interested in SpringBoot and I bought your course. Yeahhhh I'd appreciate if you can include the following modules too 1. Building API Gateway 2. Handling scalability issues 3. Connecting different Microservices - Named services 4. Deployment with Docker or it's likes
@JavaGuides
@JavaGuides 2 жыл бұрын
@@krishind99 I am planning to create a complete course on microservices and I will cover these topics. We will let know as we publish new courses or update existing course.
@raghavanaliassaravananm1546
@raghavanaliassaravananm1546 2 жыл бұрын
Nice video Ramesh. Congrats on getting a Macbook Air :) Guess this is the first video you made on Macbook! isnt' it? By the way, what tool do you use capture the video recording - in Windows and now in Mac?
@JavaGuides
@JavaGuides 2 жыл бұрын
In Mac, I use Camtasia for screen recording and video editing.
@raghavanaliassaravananm1546
@raghavanaliassaravananm1546 2 жыл бұрын
@@JavaGuides cool. Paid version??
@JavaGuides
@JavaGuides 2 жыл бұрын
@@raghavanaliassaravananm1546 Yes
@darshanjain668
@darshanjain668 2 жыл бұрын
@@raghavanaliassaravananm1546 .. .... .... . . ....pp.p . .. P. .?
@henrydu3339
@henrydu3339 5 ай бұрын
you should use post method in controller to save user and location
@fathurrachman3572
@fathurrachman3572 2 жыл бұрын
can you show the example how to get the endpoint from url with retrofit then show it to localhost?
@thekunthe0736
@thekunthe0736 2 жыл бұрын
How can I use it with mongo db?
@saumitrasaxena8470
@saumitrasaxena8470 Жыл бұрын
nicely explained ..what's the difference between DTO and VO ??
@mrityunjaisingh
@mrityunjaisingh Жыл бұрын
Ya please someone explain
@DanielRodrigues-bx6lr
@DanielRodrigues-bx6lr Жыл бұрын
You haven't used ModelMapper or MapStruct here?
@manutyagi8019
@manutyagi8019 Жыл бұрын
Good afternoon sir, what is the purpose of optional variable while declaring @ManyToOne annotation?
@JavaGuides
@JavaGuides Жыл бұрын
The optional attribute of @ManyToOne used to check the field value is null or not at runtime. The nullable attribute is used to specify NOT NULL for column (mapped to field in JPA entity).
@amidfallen
@amidfallen 2 жыл бұрын
thanks! Btw, would be nice to use builder designer patter in UserLocationDTO class
@sbszcc
@sbszcc Жыл бұрын
in this case, UserLocationDTO has only one way of being created: all of its properties are mandatory, so with a constructor is enough. Builder pattern is used when some properties are optional, like configuration pojos, not in every POJO
@sahilpatil1111
@sahilpatil1111 2 жыл бұрын
How to update only specific value instead of whole entity in jpa ?????
@MrManda007
@MrManda007 2 жыл бұрын
Make custom query - DTO. 1. Make custom query in db be sure to work. 2.Make interface with fields returned by query 3.Inside repository interface make virtual method who return object you made in step 2 4. Inside controller sent this value to view.
@historinhasdivertidas5712
@historinhasdivertidas5712 2 жыл бұрын
hi show example de POST com dto??
@raffaeleoliviero7389
@raffaeleoliviero7389 Жыл бұрын
Can you give me the name of your IDE, pls?
@jbhatnagar1
@jbhatnagar1 Жыл бұрын
What does he mean by jp object in the video? Anybody can reply
@JavaGuides
@JavaGuides Жыл бұрын
You mean JPA entity object. Provide a timestamp where you have a doubt
@jbhatnagar1
@jbhatnagar1 Жыл бұрын
Thank you for the quick response I really appreciate it The time stamp is 7:20 I think it’s a jpg obj What does this object do? I will appreciate your quick response
@jbhatnagar1
@jbhatnagar1 Жыл бұрын
It’s not jpg obj. Yes it’s JPA obj at time stamp 7:20
@Seff2
@Seff2 Жыл бұрын
You only showd how to create the DTO from the entity. THe other way would be more interesting. How to handle the insert of one JSON (or DTO) that contains two models?
JAVA DTO Pattern Tutorial | Simplify Your Code
19:12
Amigoscode
Рет қаралды 193 М.
I Can't Believe We Did This...
00:38
Stokes Twins
Рет қаралды 93 МЛН
孩子多的烦恼?#火影忍者 #家庭 #佐助
00:31
火影忍者一家
Рет қаралды 49 МЛН
The child was abused by the clown#Short #Officer Rabbit #angel
00:55
兔子警官
Рет қаралды 25 МЛН
When You Get Ran Over By A Car...
00:15
Jojo Sim
Рет қаралды 23 МЛН
Spring Tips: Spring Modulith
37:39
SpringDeveloper
Рет қаралды 16 М.
5 Common Mistakes Spring Developers Make
18:06
Dan Vega
Рет қаралды 16 М.
Exception Handling in Spring Boot REST API Explained With Demonstration
28:05
Use DTO instead of Model and Entity objects
8:11
Java Master
Рет қаралды 20 М.
Spring Boot JDBC using JdbcTemplate
29:39
Telusko
Рет қаралды 63 М.
the right way to organise your code
17:33
Amigoscode
Рет қаралды 193 М.
Learn how Spring Boot Model Mapper works Fast and Simple
20:55
Fast and Simple Development
Рет қаралды 22 М.
I Can't Believe We Did This...
00:38
Stokes Twins
Рет қаралды 93 МЛН