Spring Boot CRUD best practice with Annotations || Hibernate + MySQL || Live Demo

  Рет қаралды 77,648

Code Decode

Code Decode

Күн бұрын

Пікірлер: 136
@irohan794
@irohan794 2 жыл бұрын
I am using springboot from last 4 months but with the responsEntity things i am impressed by your explanation ....thanks
@CodeDecode
@CodeDecode 2 жыл бұрын
Thanks rohan for the nice words
@aududaniels4031
@aududaniels4031 2 жыл бұрын
I've been in love ever since I found your resources... mucho gracias for doing great justice to every java/spring boot task... you are loved. keep it up
@CodeDecode
@CodeDecode 2 жыл бұрын
Means a lot to us Man. 🙂🙂 thanks 👍👍
@priteshbohrade8
@priteshbohrade8 3 жыл бұрын
Very nicely explain as always😍... Plz continue this.. add security ,j unit ,central exception handling, as well as spring actuator.. this playlist single handedly can be able to get ppl all the concept cleared practically.. thank you so much..🙏🙂.
@CodeDecode
@CodeDecode 3 жыл бұрын
That's a very nice suggestion Pritesh, I will surely follow this approach if that's best for people 👍thanks 🙏
@BaluKompalli
@BaluKompalli 3 жыл бұрын
Very useful. This is first time, i know how to use this responseEntity and advantages of the status types usage.
@CodeDecode
@CodeDecode 3 жыл бұрын
Thanks for writting back Balu 👍👍. It helps 🙏
@psmondal123
@psmondal123 3 жыл бұрын
Eagerly waiting for the upcoming videos. Thank you so much for explaining the toughest topics in the easiest way.
@CodeDecode
@CodeDecode 3 жыл бұрын
You are Welcome....😊
@punit41290
@punit41290 3 жыл бұрын
Very informative and quick learning. There are couple of points which you should follow to make it more interesting. 1. In update you should take 200. 2. You should also implement rsql for pagination and search 3. Exception handling which you already mentioned 4. Auditing and logging... if possible take an AOP Concept as well.
@CodeDecode
@CodeDecode 3 жыл бұрын
Very nice topics. In This video we have just covered simple crud. We will slowly cover all these topics very soon in upcoming videos. Thanks for writing back to us. 👍👍
@venkatasaikrishnak6984
@venkatasaikrishnak6984 3 жыл бұрын
It's nice, requesting to create a video on Unit test cases for all layers like Controller, Service, Repository, etc with JUnit and Mockito. Very much needed.
@CodeDecode
@CodeDecode 3 жыл бұрын
Sure 👍👍
@komalsingla6032
@komalsingla6032 3 жыл бұрын
Hello, thank you for making these videos. Please make CRUD videos for REST API using database along with Response Entity features. Also please make videos on validations provided in spring framework and how to create our own validations.
@CodeDecode
@CodeDecode 3 жыл бұрын
Thanks komal. Sure I will👍👍
@somendrasharma3174
@somendrasharma3174 3 жыл бұрын
Great! Please continue with Spring Boot Live Demo series. I request you to show some live demo on microservices with types.
@CodeDecode
@CodeDecode 3 жыл бұрын
Sure 👍
@sukunkusum1720
@sukunkusum1720 3 жыл бұрын
Thank you so much! These videos are really helpful. Thanks for your efforts! These live demo series actually helps to practice simultaneously.
@CodeDecode
@CodeDecode 3 жыл бұрын
Thanks Sukun. Yes it's the best way to learn 🙂👍
@sukunkusum1720
@sukunkusum1720 3 жыл бұрын
@@CodeDecode Requesting you to make a video on rest services too. Its an honor to learn through your videos.
@CodeDecode
@CodeDecode 3 жыл бұрын
Sure Kusum, next we will upload that 👍👍
@ManishSingh-yi5eu
@ManishSingh-yi5eu 2 жыл бұрын
Please create video on Rest with annotatons.Yours videos are very helpfull. Thanks!!
@CodeDecode
@CodeDecode 2 жыл бұрын
Sure we will create it soon
@ManojKumar-kv2pu
@ManojKumar-kv2pu 3 жыл бұрын
Good video. Cover all topics and for MySQL installation also show all steps how to install and connect because some new beginner won't be able to setup project
@CodeDecode
@CodeDecode 3 жыл бұрын
Sure 👍👍
@vigneshwaranm2534
@vigneshwaranm2534 2 жыл бұрын
Thank You So Much Mam , such a wonder full quick explanation...really great.. once again thanks
@CodeDecode
@CodeDecode 2 жыл бұрын
Thanks Vigneshwaran 🙂👍
@paswini244
@paswini244 3 жыл бұрын
Great Explanation...Thanks😊...Please create a vedio on Exception Handling in Spring Boot
@CodeDecode
@CodeDecode 3 жыл бұрын
sure we will create........
@kichaloo3669
@kichaloo3669 3 жыл бұрын
Superb.... thanks you codedecode 👍👍👍
@CodeDecode
@CodeDecode 3 жыл бұрын
You are Welcome....
@susongbrit
@susongbrit 3 жыл бұрын
Brilliant teaching ma'am...waiting for the junit test cases ..please upload fast
@CodeDecode
@CodeDecode 3 жыл бұрын
Sure Susongbrit 👍👍we will upload junit video soon 👍🙃
@dinelikarunathilaka7873
@dinelikarunathilaka7873 3 жыл бұрын
Love your videos. Helps to understand the toughest subject matters quite easily. Appreciate if you can do a tutorial on writing test cases for the above services using Junit. Keep up the good work. All the best!
@CodeDecode
@CodeDecode 3 жыл бұрын
Thanks for writing back to us Dineli 👍👍. Sure we will upload a video on junits too. 👍👍
@amarthyaseshu683
@amarthyaseshu683 3 жыл бұрын
Thanks for sharing, it's also recommended using another dto than directly using Employee(As it's an entity) in the controller I guess.
@CodeDecode
@CodeDecode 3 жыл бұрын
Yes that's true. I have said this in video that we use DTO s and not entities in real scenerios. But since it's just a CRUD, we are using entities directly. But since entities denotes real rows in DB, in real time projects, use DTOs.
@amarthyaseshu683
@amarthyaseshu683 3 жыл бұрын
@@CodeDecodethanks, if possible can u create on spring security also jwt with Authorization!
@CodeDecode
@CodeDecode 3 жыл бұрын
Yes, we were about to, but didn't get good response on the video, so we thought it's not the priority for viewers. But thanks for letting us know that it's required, once done with multi threading part, we will restart security part
@niketdeore3236
@niketdeore3236 3 жыл бұрын
It's really helpful thank you so much..
@CodeDecode
@CodeDecode 3 жыл бұрын
You're welcome
@rahulvijay4365
@rahulvijay4365 Жыл бұрын
Good content and amazingly explained 😊
@CodeDecode
@CodeDecode Жыл бұрын
Thanks
@pallavi9362
@pallavi9362 3 жыл бұрын
Hey I really like to thank uuu 💓💓💓💓u clear my doubt
@CodeDecode
@CodeDecode 3 жыл бұрын
You're welcome Pallavi
@karthickselvam3938
@karthickselvam3938 3 жыл бұрын
Very much useful... thank you...
@CodeDecode
@CodeDecode 3 жыл бұрын
👍👍🙂
@anw568
@anw568 2 ай бұрын
Hi, Thank you for such detailed explanation. I have a little problem related to the Auto generated id. After the rows 1and 2, the id is getting generated from 52 instead of 3. Is there a way to fix it or do I have to post manual id's instead to fix it?
@KirthiJosh
@KirthiJosh 3 жыл бұрын
Love your vedios.Thank you so much.I
@CodeDecode
@CodeDecode 3 жыл бұрын
Thanks vanaja........
@aadiraj6126
@aadiraj6126 3 жыл бұрын
Direct fetching via Spring Data using findById() Direct fetching via EntityManager using find() Direct fetching via Hibernate Session.load() In real time, which one is preferred ma'm?
@GauravSharma-up9gs
@GauravSharma-up9gs 2 жыл бұрын
Helpful to me. Thanks
@CodeDecode
@CodeDecode 2 жыл бұрын
Thanks Gaurav 👍🙂
@abirchaudhary6359
@abirchaudhary6359 2 жыл бұрын
could not able to see inserted rows in DB. But Postman showing 201 created with empty json response. Since Data is not saved in DB its not able to fetch findById() and giving 404. Need help to set up the DB where i can monitor the records
@vengateshm2122
@vengateshm2122 3 жыл бұрын
Nice. Thank You.
@CodeDecode
@CodeDecode 3 жыл бұрын
you're welcome vengatesh
@vickybhoir3017
@vickybhoir3017 6 ай бұрын
nice explanation
@CodeDecode
@CodeDecode 5 ай бұрын
Thanks
@tejaswiniakula7607
@tejaswiniakula7607 3 жыл бұрын
Hi i was getting field crudrepo in employeservice require a bean named entityManagerFactory Can u please resolve it
@srinivasacharya4695
@srinivasacharya4695 3 жыл бұрын
Please do a video on unit testing a spring boot application using junit with mockito framework
@CodeDecode
@CodeDecode 3 жыл бұрын
Sure 👍👍
@tariqueahmed7258
@tariqueahmed7258 2 жыл бұрын
After doing the save action : "localhost:8080/code/save" my record name= code decode is not getting created instead am getting a response 201 created and in the response body am getting { } blank. Please help me on this what to do ?
@theDecentDrake
@theDecentDrake Жыл бұрын
In database during get mapping I am not able to transfer my DB data into Postman. Please help @Code Decode
@yasin2210
@yasin2210 Жыл бұрын
Nice explanation
@CodeDecode
@CodeDecode Жыл бұрын
Thanks
@fionamiriamabraham5074
@fionamiriamabraham5074 3 жыл бұрын
Hi Ma'am. Thank you for these videos.I am learning this new and the explanation is to the point. How do we access the database navigator from STS? I am not able to verify the database creation and entry. When I access local host from browser, I am only getting an empty array
@CodeDecode
@CodeDecode 3 жыл бұрын
you can try dbeaver extension in eclipse or STS marketplace
@rashmishetty8939
@rashmishetty8939 Жыл бұрын
What shoul we do in the controller layer for sending xml format ? What annotation can be used in post method instead of @Requestbody
@Jamesk6941
@Jamesk6941 Жыл бұрын
Lovely
@CodeDecode
@CodeDecode Жыл бұрын
Thanks 🙂🙂
@abhi007rider
@abhi007rider 3 жыл бұрын
Thank you so much.
@CodeDecode
@CodeDecode 3 жыл бұрын
👍👍🙂
@surbhigupta6471
@surbhigupta6471 3 жыл бұрын
can you please make videos on exception handling in spring boot soon so that i am able to crack the interview
@CodeDecode
@CodeDecode 3 жыл бұрын
Next video will be on that🙂🙂
@saikiran3326
@saikiran3326 2 жыл бұрын
cooool 😊
@CodeDecode
@CodeDecode 2 жыл бұрын
Thanks Sai 🙂👍
@brajray2881
@brajray2881 Жыл бұрын
Thanks 🎉
@CodeDecode
@CodeDecode Жыл бұрын
👍👍🙂
@maan9011
@maan9011 3 жыл бұрын
U simplly superb
@CodeDecode
@CodeDecode 3 жыл бұрын
thanks 😊
@priyankpatel6644
@priyankpatel6644 Жыл бұрын
while debugging i am getting Ambiguous argument values for parameter of type [" + paramType.getName() + "] - did you specify the correct bean references as arguments?"); error can anyone tell the issue
@nikhilpatil3013
@nikhilpatil3013 2 жыл бұрын
Hi mam.. please tells us about native query operation
@Chhunumunu
@Chhunumunu 3 жыл бұрын
Can you please do database interview questions as well?
@CodeDecode
@CodeDecode 3 жыл бұрын
Sure 👍
@rajatram5068
@rajatram5068 3 жыл бұрын
great Thank You...
@CodeDecode
@CodeDecode 3 жыл бұрын
👍👍🙂
@radhamuthu7695
@radhamuthu7695 2 жыл бұрын
Mam .....when did all the operation..after disconnected this server....the stored in database it deleted....when i restart the server again i post all the data.. Why it happen...why previously stored data not present in database?
@CodeDecode
@CodeDecode 2 жыл бұрын
Check ddl auto in property file. It will be pointing to create that's why this issue comes👍 make that point to update
@moggarajesh5240
@moggarajesh5240 3 жыл бұрын
Nice explanation 👏👏....but I want two different entity class send the one request in @request body is it possible
@ashokkumar-ro8mf
@ashokkumar-ro8mf 3 жыл бұрын
Thanks for the video ,can you please help me to fix the error as Resolved [org.springframework.web.HttpRequestMethodNotSupportedException: Request method 'GET' not supported]...Have followed the same which would there in video
@CodeDecode
@CodeDecode 3 жыл бұрын
Are you trying to hit with postman or chrome? Please check if you are using chrome, it always sends get request and if your method is accepting post or other type of request in that case u may find this issue.
@sunilsinha6556
@sunilsinha6556 3 жыл бұрын
How we will get user define value from multiple joins in a quary without mapping in entity it means custom data fetching using jpa repository
@jigarthakkar5518
@jigarthakkar5518 3 жыл бұрын
Hello, good video. I was following your code and similarly doing in my eclipse. When I was inserting an entry from postman , what I observed that name value was not getting mapped with employee.name parameter when this request came to Controller. Due to this , In db records are getting inserted having name value as null. It would be good if you can let me know where I was wrong.
@ganeshsureshshinde5785
@ganeshsureshshinde5785 Жыл бұрын
After running the application shows empty array in postman and the browser. In postman its shows that HTTP status is created but its an empty array.
@CodeDecode
@CodeDecode Жыл бұрын
Any error on console? Any row in table? Which method u used?
@sushmareddy859
@sushmareddy859 2 жыл бұрын
Im unable to view the database in eclipse, can you make a video on it also can you make a video on all http status and about build,clean
@CodeDecode
@CodeDecode 2 жыл бұрын
Sure Sushma. We will do that. Please find dbeaver in marketplace in eclipse. U will find it. If not plz let us know
@KiranPpppp
@KiranPpppp 2 жыл бұрын
How to give input to resp api from postman I am tried from postman but its not taking after writing posmapping only
@CodeDecode
@CodeDecode 2 жыл бұрын
What the error that u are facing?
@ayushdxt
@ayushdxt 3 жыл бұрын
Can you please tell why do autowire the interface and not the service class?
@CodeDecode
@CodeDecode 3 жыл бұрын
That's one of the best practices. You know that we can call a method by either the class or it's parent reference. Relate it will kind of dynamic polymorphism then You will be able to understand that we are just calling child class method using parent reference. M I clear or should I explain more
@ankitkatiyar82
@ankitkatiyar82 3 жыл бұрын
We are following Dependency Injection principle of SLOID here by providing interface reference.
@reactjsdeveloper8758
@reactjsdeveloper8758 3 жыл бұрын
make a video on multithreading interview questions
@CodeDecode
@CodeDecode 3 жыл бұрын
Sure 👍👍
@reactjsdeveloper8758
@reactjsdeveloper8758 3 жыл бұрын
@@CodeDecode Also, make a video on how to create simple microservices by using spring boot
@CodeDecode
@CodeDecode 3 жыл бұрын
Sure 👍👍
@yoshitamahajan353
@yoshitamahajan353 3 жыл бұрын
Hi can u please let me know what is difference between @service and @component?
@CodeDecode
@CodeDecode 3 жыл бұрын
They both create beans that are managed by ioc container in spring. It's just the syntatic difference done for better readability of code.
@yoshitamahajan353
@yoshitamahajan353 3 жыл бұрын
@@CodeDecode thanks
@CodeDecode
@CodeDecode 3 жыл бұрын
No worries Yoshita. Keep learning keep rocking👍👍
@thakurabhisheksingh1231
@thakurabhisheksingh1231 2 жыл бұрын
Mam i have a doubt please clear .. why aren't we using @pathvariable in update .. we need to pass the ID of respective Entity to make it updated and get input only then .. operation could be performed... why are we manually doing this i.e sesrchind id in json format and then updating
@007arek
@007arek 2 жыл бұрын
That method is wrong. You should have @pathvariable, and only if object doesn't exist you can crate it and return 201, otherwise you should return 200 or 204. You can check if id from the json and path are the same or use DTO.
@mdnaveeds7964
@mdnaveeds7964 3 жыл бұрын
I did everything same as u did mam Crate read update is not working but delete is working no error no exception please help me
@CodeDecode
@CodeDecode 3 жыл бұрын
What error do you get with these3 operation?
@mdnaveeds7964
@mdnaveeds7964 3 жыл бұрын
Mam Lombok dependency problem getters setters are not working
@syamnaidu5244
@syamnaidu5244 Жыл бұрын
Why don't we use the PATCH method instead of PUT?
@CodeDecode
@CodeDecode Жыл бұрын
Yes we can Syam👍. Multiple ways to do same thing 👍👍
@pranabchetry136
@pranabchetry136 8 ай бұрын
Where can i find your ppt notes Ma'am?
@gsaigsai1398
@gsaigsai1398 Жыл бұрын
How to update based on I'd..?
@nitigyasahu8402
@nitigyasahu8402 3 жыл бұрын
very good thanks. can you please provide source code
@CodeDecode
@CodeDecode 3 жыл бұрын
updated in the description
@lazydude2363
@lazydude2363 2 жыл бұрын
Mam how are going to Database Navigator ?
@CodeDecode
@CodeDecode 2 жыл бұрын
You can use it from marketplace
@lazydude2363
@lazydude2363 2 жыл бұрын
@@CodeDecode ok i will try, Thanks
@mdnaveeds7964
@mdnaveeds7964 3 жыл бұрын
can any one help me values are not stored in db y idk but table created when ever i send request using postman only id is inserted but name is null
@CodeDecode
@CodeDecode 3 жыл бұрын
Is id auto generated? Did u use @generatedvalue or something?
@mdnaveeds7964
@mdnaveeds7964 3 жыл бұрын
Yes
@mdnaveeds7964
@mdnaveeds7964 3 жыл бұрын
Lombok dependency is the problem
@filmthesis892
@filmthesis892 Жыл бұрын
i am getting postman error status 404 when try to use it..can anyone help me resolve it
@CodeDecode
@CodeDecode Жыл бұрын
404 not found. Can you check your url. There is no rest api at that curl that you are hitting
@filmthesis892
@filmthesis892 Жыл бұрын
@@CodeDecode my url is correct mam but i could nt make it work in postman :/
@CodeDecode
@CodeDecode Жыл бұрын
Is it a get request? If so try on browser. Postman is just a tool it will not stop your urls. There is something wrong in our curl that's a problem 👍👍
@tunamusic2314
@tunamusic2314 Жыл бұрын
can we use @Autowired private EmployeeService employeeService; replace for @Autowired private EmployeeServiceInterface employeeServiceInterface; is it also right if i do like that ?
Twin Telepathy Challenge!
00:23
Stokes Twins
Рет қаралды 70 МЛН
бабл ти гель для душа // Eva mash
01:00
EVA mash
Рет қаралды 9 МЛН
How To Choose Mac N Cheese Date Night.. 🧀
00:58
Jojo Sim
Рет қаралды 84 МЛН
Istio & Service Mesh - simply explained in 15 mins
16:09
TechWorld with Nana
Рет қаралды 675 М.
Twin Telepathy Challenge!
00:23
Stokes Twins
Рет қаралды 70 МЛН