Write Your First Microservice Using Java and Spring Boot | Java microservices | REST API

preview_player
Показать описание
In this lesson, you will Write Your First Microservice Using Java and Spring Boot . We will use REST API (Spring REST) , Spring Boot, ModelMapper, Spring Boot Data JPA, MYSQL in our tech stack today.

As I said you guys in our earlier lesson, The spring cloud helps us solving different problem/challenges that we usually face in java microservices. But Before we understand those challenges, we got to build some Microservices.
So Let’s Build two of them.

Note that you should have Spring REST, Spring Boot and Spring DATA as the prerequisite before proceeding with this lesson. I will not explain Spring Web MVC or Spring REST related things.

My main goal will be to develop couple of Microservices so that I can start teaching you spring cloud and spring microservices.

Resources :
If you are new to Spring , please check my spring core, spring mvc, spring mvc intermediate, spring jdbc,spring security playlist on this channel.They all are FREE FULL COURSE and you need them as prerequisite.

If you already have some spring basics, You can take the below paid course On Spring Framework to enhance your skill set.

This Lesson, is part of my Spring boot advanced + Microservices Bootcamp

Timestamp

00:00:00 - Prerequisites and Intro
00:06:08 - Building Employee Service using Spring Boot
00:09:44 - DB(MYSQL) Table Creation
00:12:46 - Writing Employee RESTController
00:27:06 - Introducing Modelmapper
00:42:57 - Address Microservice Development using Spring Boot and Spring REST
00:56:55 - Spring Boot Custom native Query
00:11:50 - QNA / Doubt Discussion

#JavaMicroservices #SpringBoot #SpringCloud

In this series of Sessions we will learn to create Microservices using spring boot and We will Implement spring cloud to resolve the known challenges during MS development.

This course will get you started with Microservices, for in-depth Microservices hands-on you can check out the below paid course : Course Name : Spring Boot Advanced + Microservices Bootcamp (Running Batch)Mode : Live / Self-Paced

#Microservices #SpringBoot #SpringCloud #java

For more free / paid courses visit

LINKS AND FREE LEARNING RESOURCES
========
Watch my new mock interview series for java developers

Watch Spring boot Hot topics

Java Interview / Question and Answer series

Explain spring Bean Lifecycle

spring core

spring mvc

spring mvc intermediate

Spring JDBC

spring live project

SPRING SECURITY COURSE[NEW]

For more courses visit

Any time you are getting stuck with issues, Feel free to ask for support.

you can ping me on my Facebook page

Make sure to join my private Facebook page (Ask me here)
“SeleniumExpress - Support"

you can ask for support in my website forum

Subscribe to my youtube channel

Follow me on Insta

Music :
—————
credits: -
(channel intro)
Creative Commons — Attribution 3.0 Unported— CC BY 3.0
Рекомендации по теме
Комментарии
Автор

Instead of additional dependency for modelmapper, there is BeanUtils class which is part of spring framework it provides copy method for copying properties from one object to another object

ramkumarreddy
Автор

The most underrated channel sir, I really wish your channel grow faster and faster. It should be reaching more than a half million now already.

kirangajul
Автор

As a beginner, the way you teaching is best and easiest way for me to understand the microservices. Thank you so much for this.

htetoowaiyan
Автор

Thank you abhilash....! . I haven't seen this kind of clean and good content presentation anywhere. It was a great learning experience. Thank you once again and keep it up.

gundrachandrasekharreddy
Автор

Please start series of solving hackers ranking questions :)

krishnakittu
Автор

I am so confused in databases. Before you said that in microservices architecture, each service has separate database. But here you make common database for address and employee service. Maybe you will tell us how to join tables, when services has own database?

aibardulatov
Автор

Sir kindly explain, why are we manually creating database and table ? Is the objective of jpa repository to create the database and table automatically ?

ashimroy
Автор

Eagerly waiting for micro services series thanks 🙏 bro. This complete series is on YouTube

mohammedmoosamr
Автор

Also, we can use MapStruct (which automates the process of creating a mapper to map data objects with model objects using annotation) .

SonalGupta
Автор

In address response we dont have employee id and also in the repository query. When I use the same process, I am getting error like column for employee id not found. Unless I add the employee id in the native query and response class, the issue doesn't resolve. How to handle this ?

pallavajhulayaswanthmanika
Автор

Hi Abhilash, kudos for providing this kind of content on YouTube.
I request you to make a tutorial on junit/mocking when u get free time
Thanks in advance 😊

eswarsai
Автор

Thanks sir for the videos sir. Please release the videos regularly so that we can enhance our skill

abhijeetw
Автор

This channel must and should grow more, I request you everyone please share Abhilash videos.

vakkalahari
Автор

Just curious as to why @Data was not used and manually @Getter @setter were used in entity class .

MohammadShoaibgamerzone
Автор

Thank you abhilash....! can you make video on merging 2 APi calls to 2 different micro-services (each having their own db copy) as one using say GrpahQl or CQRS in this series

sagarghodake
Автор

Hello Sir,

In service package, I am getting error as non static method findById(ID) cannot be referenced from a static context.

How to fix it?

AashishRanjan-zc
Автор

4.:52 thank god she asked that question, I was having the same doubt as well.

harshhwardhanrai
Автор

your courses are good just a suggestion also include the error handling scenarios for the people who are new to this can get along with other things also.

rohitsachdeva
Автор

Thank you for the great video! Is it possible to use h2-database with microservices (not in Production. Only during development). Assume that I load the database from a file and not from the memory. How am I going to set the relationship between Employee Service and Address Service (1 to 1) if they are actually a different application? Can I do something like this or it is impossible to do with an H2 database? Thank you in advance!

ainigma
Автор

Can you please make a video on geting a list of employees? using the spring boot 3 ListCrudRepository? thanks in advance

weilichen
join shbcf.ru