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

  Рет қаралды 61,307

Selenium Express

Selenium Express

Күн бұрын

Пікірлер: 84
@ramkumarreddy4295
@ramkumarreddy4295 Жыл бұрын
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
@SeleniumExpress
@SeleniumExpress Жыл бұрын
Pinned this comment. If anyone is reading this, here is another way how you could copy properties. It's another go to approach.
@techgyan6233
@techgyan6233 Ай бұрын
@@SeleniumExpress Using Constructor Mapping You can define a constructor in the DTO that takes an entity object as a parameter. This reduces the amount of boilerplate code. Example: ResponseDTO with Constructor: java Copy code public class EmployeeResponseDTO { private Long id; private String name; public EmployeeResponseDTO(Employee employee) { this.id = employee.getId(); this.name = employee.getName(); } // Getters } Usage: Employee employee = employeeRepository.findById(1L).orElseThrow(); EmployeeResponseDTO dto = new EmployeeResponseDTO(employee);
@gundrachandrasekharreddy8011
@gundrachandrasekharreddy8011 Жыл бұрын
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.
@weilichen2961
@weilichen2961 Жыл бұрын
Can you please make a video on geting a list of employees? using the spring boot 3 ListCrudRepository? thanks in advance
@AashishRanjan-z4c
@AashishRanjan-z4c Жыл бұрын
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?
@sivaReddy-zn6gp
@sivaReddy-zn6gp Жыл бұрын
could have added spring data jpa, instead of manually working on databases and tables.
@kentfang
@kentfang Жыл бұрын
how do you deploy both microservices at the same time?
@ajaydhiman2368
@ajaydhiman2368 Жыл бұрын
Why you didn't use @Repository annotation in Repository class or its optional to use ?
@ajaydhiman2368
@ajaydhiman2368 Жыл бұрын
@Selenium Express - ?
@hoangang6586
@hoangang6586 Жыл бұрын
yepp, it is optional
@atulsingh9266
@atulsingh9266 Жыл бұрын
can u gives the source code of this lecture
@kirangajul6782
@kirangajul6782 Жыл бұрын
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.
@krishnakittu3266
@krishnakittu3266 Жыл бұрын
Please start series of solving hackers ranking questions :)
@maniteja5215
@maniteja5215 Жыл бұрын
Love your videos ❤️ eagerly waiting. I have a doubt, which frontend framework goes good with springboot(react or angular)
@SeleniumExpress
@SeleniumExpress Жыл бұрын
Thanks Mani for the kind words. ❤️ You can choose any one of it for learning. Once you have a project assigned, the you can work on whatever that comes in your way.
@pallavajhulayaswanthmanika7319
@pallavajhulayaswanthmanika7319 10 ай бұрын
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 ?
@MuralikrishnaPennam
@MuralikrishnaPennam Жыл бұрын
EmployeesResponse class properties will be change in case how to map both employees entity and response class
@MohammadShoaibgamerzone
@MohammadShoaibgamerzone Жыл бұрын
Just curious as to why @Data was not used and manually @Getter @setter were used in entity class .
@eswarsai9333
@eswarsai9333 10 ай бұрын
Hi Abhilash, kudos for providing this kind of content on KZbin. I request you to make a tutorial on junit/mocking when u get free time Thanks in advance 😊
@ashimroy3891
@ashimroy3891 Жыл бұрын
Sir kindly explain, why are we manually creating database and table ? Is the objective of jpa repository to create the database and table automatically ?
@sagarghodake9289
@sagarghodake9289 Жыл бұрын
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
@varatharajvenkat4817
@varatharajvenkat4817 Жыл бұрын
Abilash your videos very use full for all.please try to upload the source code.
@SonalGupta25
@SonalGupta25 Жыл бұрын
Also, we can use MapStruct (which automates the process of creating a mapper to map data objects with model objects using annotation) .
@aw703
@aw703 Жыл бұрын
Thanks sir for the videos sir. Please release the videos regularly so that we can enhance our skill
@harshhwardhanrai3716
@harshhwardhanrai3716 Жыл бұрын
4.:52 thank god she asked that question, I was having the same doubt as well.
@htetoowaiyan723
@htetoowaiyan723 Жыл бұрын
As a beginner, the way you teaching is best and easiest way for me to understand the microservices. Thank you so much for this.
@mohammedmoosamr4052
@mohammedmoosamr4052 Жыл бұрын
Eagerly waiting for micro services series thanks 🙏 bro. This complete series is on KZbin
@AlokKumar-ot9sx
@AlokKumar-ot9sx Жыл бұрын
Hello Sir I just came across your channel. May I know if you are teaching Development. Sorry I am just confused by the channel name
@ainigma100
@ainigma100 Жыл бұрын
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!
@YugNirman15
@YugNirman15 Жыл бұрын
Please start series of real time project with microservices.
@SeleniumExpress
@SeleniumExpress Жыл бұрын
Hi Pradeep, you can follow the current series. This will serve the needs
@YugNirman15
@YugNirman15 Жыл бұрын
@@SeleniumExpress Thank you abhilash. I have followed all Spring, Spring MVC series and share it too with frnds. It was great learning experience.
@lovetyagi5266
@lovetyagi5266 Жыл бұрын
PLEASE MAKE VIDEO ON JAVA CONCURRENCY AND NON BLOCKING IO
@vakkalahari5449
@vakkalahari5449 Жыл бұрын
This channel must and should grow more, I request you everyone please share Abhilash videos.
@linhphanthiquynh1573
@linhphanthiquynh1573 Жыл бұрын
Thank you for your greate lessons. Are there any your paid courses on Udemy? Might I have the links? Thank you very much
@vasanthselvam9698
@vasanthselvam9698 Жыл бұрын
Post video for spring boot with multiple data source using spring data JpaRepository
@surajkumardas6206
@surajkumardas6206 4 ай бұрын
Why I am getting column id not found after removing ea.id
@arnabchatterjee5121
@arnabchatterjee5121 Жыл бұрын
Really good content sir.Is there any paid course available for this!! I want to explore more on this.
@karan12171
@karan12171 8 ай бұрын
Why video quality is unavailable for this video😢
@vndprasadgrandhi4344
@vndprasadgrandhi4344 Жыл бұрын
Hi Bro,It's a wonderful explanation..thank you very much for your support.but I have one doubt on importance of model mapper with and without.. please explain 😊
@SeleniumExpress
@SeleniumExpress Жыл бұрын
Hi Prasad, without a mapper it will be difficult to manually copy all your entity properties to dto/model properties, considering a scenario you got 30 properties inside your dto
@manamohansamal1040
@manamohansamal1040 Жыл бұрын
There is a implicit class called BeanUtils provided by spring as well to map property from entity to models.
@nullpointer500
@nullpointer500 Жыл бұрын
Hi Abhilash I asked one query in the last video plz reply is this series free to access or it's paid???
@SeleniumExpress
@SeleniumExpress Жыл бұрын
Hi Rahul, The spring cloud foundation will be free. However this video's are from my paid series which has 200+ hours of contents.
@aibardulatov
@aibardulatov 8 ай бұрын
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?
@MainakMondal-np1rd
@MainakMondal-np1rd 3 ай бұрын
Can you give your github profile??
@rohitsachdeva4624
@rohitsachdeva4624 Жыл бұрын
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.
@sakshisrivastava5986
@sakshisrivastava5986 7 ай бұрын
any github link for the code?
@anoopm4152
@anoopm4152 Жыл бұрын
Bro please have a series on React
@bharathalluri9118
@bharathalluri9118 Жыл бұрын
What if variables name in target class doesn’t match with request object?
@SeleniumExpress
@SeleniumExpress Жыл бұрын
Hi Bharath, then we got to manually map using another overloaded map method. There are different patterns matches that model mapper provides us. Please refer the model mapper doc. I will be creating few contents on model mapper and different mapping api in coming days.
@ebin44
@ebin44 Жыл бұрын
Marvelous way of teaching 👍
@KarthiKeyan-re1uh
@KarthiKeyan-re1uh Жыл бұрын
Most waiting video 😍😍
@tasteanotherbite1265
@tasteanotherbite1265 Жыл бұрын
A great explanation. Really helpful.
@manish_55
@manish_55 5 ай бұрын
sir ur background music get me chill when my overloaded by ur lecture
@lakhankale9692
@lakhankale9692 Жыл бұрын
Hi Abhilash when will we expect Next video for this series
@SeleniumExpress
@SeleniumExpress Жыл бұрын
This Saturday!
@lakhankale9692
@lakhankale9692 Жыл бұрын
@@SeleniumExpress thanks
@dikshijain9473
@dikshijain9473 Жыл бұрын
Could you please include authentication and authorisation as well
@SeleniumExpress
@SeleniumExpress Жыл бұрын
Hi Dikshi. Sure, It's on the way ! Alternatively you can refer my spring security sessions
@mansinghyadav548
@mansinghyadav548 Жыл бұрын
Thank you soo much sir. We love you sir
@SeleniumExpress
@SeleniumExpress Жыл бұрын
❤️❤️
@ajithkrkd2562
@ajithkrkd2562 Жыл бұрын
your intro song BGM is very motivational
@PradeepKumar-sx6ms
@PradeepKumar-sx6ms Жыл бұрын
I think you can use IntelliJ and please white background with big font
@SeleniumExpress
@SeleniumExpress Жыл бұрын
Hi Pradeep, this series is already recorded. I will keep your suggestion in mind during my upcoming recordings.
@PradeepKumar-sx6ms
@PradeepKumar-sx6ms Жыл бұрын
@@SeleniumExpress are you building full-fledged microservices on youtube if yes, please include kafka
@archanasingh9379
@archanasingh9379 Жыл бұрын
Hello , just need to know it's fir tester or can be fir Java developer
@vinay2841
@vinay2841 Жыл бұрын
for developers
@archanasingh9379
@archanasingh9379 Жыл бұрын
@@vinay2841 thanks
@malyadrichennupati7389
@malyadrichennupati7389 Жыл бұрын
feign client sir
@fazalharoon9354
@fazalharoon9354 Жыл бұрын
great
@good114
@good114 Жыл бұрын
💕❤️
@start1learn-n171
@start1learn-n171 Жыл бұрын
Tq
@rishiraj2548
@rishiraj2548 Жыл бұрын
👍
@collinsboniface2073
@collinsboniface2073 Жыл бұрын
Finally
@adabalasaibharath9018
@adabalasaibharath9018 Жыл бұрын
Why do we use response classes?
@ainigma100
@ainigma100 Жыл бұрын
It is not a good practice to return the actual entity to the user. This is why we use another class as a return type. For instance, assume we have an entity with 30 properties and we want to return to the user only some of them. We will have to create another class, in which we will map the values (only the properties we want to return to the user) from the entity to the response class and return the response class back to the user.
@pradeepravi9608
@pradeepravi9608 Жыл бұрын
When will get next video sir
@SeleniumExpress
@SeleniumExpress Жыл бұрын
Coming Saturday!
@santhoshchandran6952
@santhoshchandran6952 Жыл бұрын
Thank you
@NagaramAshwini
@NagaramAshwini Жыл бұрын
when iam going to practice same things in my sts, i am getting hibernate package as jarkata.persistence but for you javax.persistence, how you are getting that? can you please respond?
@krishnadaram3179
@krishnadaram3179 Жыл бұрын
For spring boot 2.7 version it would be javax above 2.7 it's will be jarkata
How do Cats Eat Watermelon? 🍉
00:21
One More
Рет қаралды 10 МЛН
Java REST API with Spring Boot Tutorial | REST API CRUD Implementation
36:27
Think Constructive
Рет қаралды 249 М.
Spring Boot APIs Gateway in 20 Minutes
22:50
The IT Wizard
Рет қаралды 11 М.
Deep Dive into REST API Design and Implementation Best Practices
12:02
Software Developer Diaries
Рет қаралды 52 М.
Microservices using SpringBoot 3.0 | Full Example [NEW]
1:25:38
Daily Code Buffer
Рет қаралды 187 М.
Java Spring Boot 2.5 Years Interview Experience
37:27
GenZ Career
Рет қаралды 22 М.