Java Spring Boot REST API Tutorial using Spring Boot 3, JPA/Hibernate, MySQL, IntelliJ IDEA, Postman
Welcome to the crash course titled Spring Boot 3 Tutorial for Beginners.
In this crash course, you will learn how to build REST APIs using Spring Boot 3 and Java 17.
Tools and Technologies Used:
- Java 17
- Spring Boot 3
- Spring Data JPA (Hibernate 6)
- MySQL Database
- IntelliJ IDEA
- Maven
- Postman Client
Timestamp:
[00:02:05] Spring Boot Application Three-Layer Architecture
[00:05:07] Create and Setup Spring Boot Project in IntelliJ IDEA
[00:10:22] Configure MySQL Database in Spring Boot Application
[00:14:50] Create Employee JPA Entity
[00:20:55] Create EmployeeRepository
[00:25:44] Create EmployeeDto and EmployeeMapper
[00:29:38] Build Add Employee REST API
[00:40:09] Build Get Employee REST API
[00:48:22] Build Get All Employees REST API
[00:55:17] Build Update Employee REST API
[01:04:38] Build Delete Employee REST API
My Popular Udemy Courses:
👉 [NEW] Full-Stack Java Development with Spring Boot & React - www.udemy.com/course/full-sta...
👉 Spring 6 and Spring Boot 3 for Beginners (Includes Projects)
www.udemy.com/course/learn-sp...
👉 Building Microservices with Spring Boot and Spring Cloud - www.udemy.com/course/building...
👉 Spring Boot Thymeleaf Real-Time Web Application - Blog App
www.udemy.com/course/spring-b...
👉 Building Real-Time REST APIs with Spring Boot - Blog App
www.udemy.com/course/building...
👉 Testing Spring Boot App with JUnit, Mockito, and Testcontainers
www.udemy.com/course/testing-...
#springboot3 #crashcourse #restapi
Пікірлер: 51
Udemy course: Spring 6 & Spring Boot 3 for Beginners (Includes 5 Projects) Course Description: Spring Framework Core 6, Spring Boot 3, Spring Security 6, REST API, Spring MVC, Spring WebFlux, JPA, Thymeleaf, Docker Link: www.udemy.com/course/learn-spring-boot/?referralCode=C2200F473771CD228695
Your teaching skill is another level. You deserve more subscribers. Awesome crash course
Omg, you are the teacher I took from Udemy; it's a really good tutorial for spring-boot.
I love all your courses Thank you so much for all the free quality content you give away to the community! I would like if in the future you can do a course on JUnit test applied to a basic crud like this for example. Greetings from Argentina
The best of the Bests !
eagerly waited for this...Now the wait is up! Thank you Dear Ramesh Sir❤
Beautiful & well Explained tutorial ❤ Thank you Ramesh sir
I like your style of teaching.. Thanks
great man, now i will be able to build my backend for my app,
Awesome Video Sir On Spring Boot.
Really good starter. I know spring boot is a lot more than this. But alteast it got me started. Thanks sir
The way of your teaching level is amazing❤❤
Thanks for video on latest version of spring boot
thank you
thanks
Can you post the video for login with forget password through email verification in spring boot.....?
Hi Ramesh. I hope you are doing Great. I'm glad to to share my success with Java Guides for your impeccable efforts in bringing the right content in a simple and clear way for Interviews Preparation and also for Coding Practice.After more than 2 years of career gap . Continuous Practice and Revision of most of your Udemy Courses and youtube Videos for 3-4 months of duration, I was able to grab multiple opportunities in just 3 weeks of duration. I was able to crack most of the interviews if JD is matching to my profile. My Last CTC is around 6LPA But in this tough times also i was able to get more than 150% hike in one Product based Level 3 Company and also in one of the top 5 Indian IT MNC with all your due support and guidance of your Udemy Courses. I really don't have enough words to express my gratitude towards all the good work you have made in this channel and in your Udemy Courses- which helped me a lot during my interviews and during my practice for interviews. Thanks Once again Ramesh. During this tough times Java Guides & Ramesh's Udemy Courses are my first preference to revise or learn any topic related to Java from scratch and also for coding practise as well.👏👏🙏🙏
@JavaGuides
Жыл бұрын
Wow, that's amazing news. Congratulations. I am glad that my teaching and content helping my students to get job and knowledge. Your kind words and appreciation made my day.
@saimanasamadaraju3105
11 ай бұрын
Hi can you please share which courses you took and flow of courses I mean roadmap for Java guides courses That will helpful my life Thank you
Hi Ramesh sir , I have seen your all the spring videos. It's amazing package. Thanks lot ❤. Only one request could you please implement oauth 2.0 in spring boot rest API ?
Thanks sir for making useful videos for us. But I request you very respectfully to work in a project in spring boot having at least 6 entities/tables using spring boot in the back end and React/Angular/Next in the front end.
Thanks My friend
Please discuss spring security changes that are challenging
Make video on spring boot and angular with new sprint security thats helpful
Sir please make videos docker and kubernates microservice deployment process
Please Make a Video on Angular Crash course.
will you make an example using the new spring boot 3.1. docker compose feature?
@acpollazzo
Жыл бұрын
@Java Guides
Something I did not understand is in the event that our employee entity has the password property, logically our employeeDTO class will not have the password property since it is not information that we want to share. So in the first instance, if we wanted to obtain the user's password data, how would we receive this information? If our disc class, which is the one that works with the client, does not receive such information?
Why not to use @Autowired on field level.? What I mean is even if we just add @Autowired annotation on any class's non primitive field then the spring will inject thar particular class and we can use that class members and methods right. Then why we should go for constructor based DI. If @Autowired way has cons please make a practical video on it if possible.
It would be really helpful if you could provide the Github Link for this project. Thank you in advance!
Please use dark mode if possible.
Hi, Why the @AllArgsConstructor in the service and the controller ? (Note: My English is very basic but usually I can understand coments)
hi, does Spring have many templates for ecommerce sites?
Hello Ramesh - Can we bypass the DTO Objects and use the entity objects?
I have a question, can someone help? What is EmployeeDto? and why do we need it? we are mapping it to employee and then mapping it back to EmployeeDto then why we are we even using it? Can't we just use Employee.
@JavaGuides
11 ай бұрын
EmployeeDto is the data transfer object. It is widely used design pattern to transfer data between client and server. I have a dedicated video on this topic. Just search for spring boot dto on this channel. Of course, you can Employee but i won't recommend to expose entity directly to the client.
@aryajha4428
11 ай бұрын
@@JavaGuides okay, I'll look for the video. Thank you !
Hello sir,custom exception is not coming
On 32:23, why didn't you use @Autowired annotation with employeeRepository?
@JavaGuides
10 ай бұрын
We are using constructor-based dependency injection to inject the dependency. Before Spring 4.3, we had to add an @Autowired annotation to the constructor. With newer versions, this is optional if the class has only one constructor. To know more, check out my blog post: www.javaguides.net/2023/01/spring-boot-constructor-injection.html
@LukaPopov
10 ай бұрын
@@JavaGuides great, thanks!
Is code checked for this tutorial,I’m getting errors in my local
I am getting error in importing get methods in mapper from dto and entity it shows cannot resolve method getId() and other methods as well can you help me
@hindsebaoui8960
10 ай бұрын
me too i didn't understand
@nileshsawant128
9 ай бұрын
@@hindsebaoui8960have you got any solution?
Sir can you please provide spring interview questions
@JavaGuides
Жыл бұрын
There are already videos on spring and spring boot interviews on this channel.
@user-yv1ms3tu5m
Жыл бұрын
@@JavaGuides actually i want you to explain about spring architecture , i am facing this questions on many interviews
Hi, I want to enroll in your course available on UDMY. Can you give me an order in which I should take your course? It will be better if you make a video or write a blog in which you explain what each course offers and in which order they should be taken. The courses you offer are almost in the same direction as my area of work. It will be better if you give me a roadmap for this. @JavaGuides
showing this problem Cannot invoke "java.lang.Long.longValue()" because the return value of "com.myproject.project.dto.UserDto.getId()" is null and i am using eclipse