I think this might be the best video on YT. You have provided all the best practices 60% which I have learn in my 2 years of career and 40% I have learned new things. This is the great thing that our Brother is providing such a awesome content for free of cost.
0:00:48 1 - Proper packaging style 0:06:23 2 - Use Spring Boot starters 0:07:17 3 - Use proper versions of the dependencies 0:09:27 4 - Use Lombok 0:15:06 5 - Use Controllers only for routing 0:15:06 6 - Use Services for business logic 0:17:42 7 - Use constructor injection with Lombok 0:21:07 8 - Use slf4j logging 0:00:00 9 - Use meaningful words for classes, methods, variables, and other attributes 0:00:00 10 - Bean validation 0:00:00 11 - Custom exception handling 0:00:00 12 - Use custom response object ... ...
Great video. Thanks. I want just to add others best practices: 1- Create application.yml for each environment Ex: application-dev.yml - application-staging.yml ... 2- using library to map DTO like MapStruct... 3- using soft delete 4- using environment variables to avoid hard-coding
@@helloworld101 MapStruct simplifies the mapping process in Java by generating the mapping code based on defined interfaces. Ex: convert a DTO into an entity…
This video is very helpful not just for beginners but also for people who want to revise clean code practices for interview !!! Thanks a lot for such knowledgeable content that too for free of cost !!
Several points here I had to discover by myself and learn how to practise them. This is a nice video that showcases them (and many more) systematically and in one place. Thumbs up!
I cannot step out of video with out commenting. It's such a great content for any developer whether a fresher or experienced🎉🎉🎉 With this video you have shown an end to end project with great standards.
got to learn a lot of new things. You explain things very precisely and in a simple way. it feels like my elder brother is talking and explaining it to me. Thank you basant bhai. please never stop making videos. :D
This video and code in project is next level, it is exactly same as industry standards students are lucky those who are learning from you. If you have any paid prime course will definitely buy to upskill
Thanks Vijay for appreciating the efforts. Yes i have a few paid courses available devops for developers live class is going on and spring boot microservice recorded video of live class available. You can drop an email to javatechie4u@gmail.com to know more about courses
if our project contains multiple services .is it neccessary to take the multiple exception handler class,and multiple exception Custom Exception..is there any alternate for that?
In controlloler inside ResponseEntity Generic types shouldn’t be used raw (without type parameters) in variable declarations or return values. Doing so bypasses generic type checking, and defers the catch of unsafe code to runtime. Solnarlint warnings. how to resolve it?
Useful content has provided by great teacher!!!👍 I have a small doubt with regards to caching. After added the caching mechanism in application, the first request will reach to DB for fetching the details and store it in cache for serving the further requests. Whether the Spring would reach DB to fetch all the records if any new record inserted in DB in between?
@@Javatechie Good morning sir, one more question how can we export data from one table to another without mapping the tables using spring boot hibernate?
good day congratulate you for the content of the videos a question in the rest services is better to send the code or error messages. Additional that way should have a class that controls the errors for each dto beforehand thanks and success in your life both personal and professional.
I see the struggle with yaml, well feature like such you will highly enjoy in Idea ultimate edition, I have switched from community to ultimate last quarter May'22 and so far didn't regret it.
Sir you used PhysicalNaming strategy in your yml file but why your instance variables not showing in order in database why sir please tell me any one of the solution because I want to store in order how
I have a small doubt what is the difference between testing APIS in post man and writing Junit test cases? both approaches motive is to check whether we are getting correct output or not
Why should we maintain the status in response instead of direct results we must get the status response code with that in frontend we can validate it I think we are adding one more step 🪜 to that I think it's not required for failures and success
I completely agree. I hate having my controllers, DTOs, and services all jumbled together-it just becomes a mess. I usually create global packages for things that should be shared globally, like bean configurations. What I typically do is create a package named "stories," and inside that, I’ll have a separate package for each story. Within each story package, I include the controller, service, validation, etc. Also, when something isn't found, the correct HTTP status code should be 404, not 200.
Hello sir, Is there a best way to convert resttemplate response to users required dto response, rather than using Jsonnode and calling particular object. For ex: in resttemplate Users:[ { Firstname:"java", Lastname:"techie" }] I want { Firstname:"java", Lastname:"techie" }
Can you have a better discount for your microservices course? Also why it says it is only available for 356 days, does that mean that after that I have no access to the course?
as a working professional for 2 years in fullstack java, I can confirm this video is a gem
I want to become a Java Full stack developer..... please can you share me your experience and give me suggestions and guidance
I think this might be the best video on YT. You have provided all the best practices 60% which I have learn in my 2 years of career and 40% I have learned new things.
This is the great thing that our Brother is providing such a awesome content for free of cost.
Thanks Harsh 🥰. Keep learning 👍
0:00:48 1 - Proper packaging style
0:06:23 2 - Use Spring Boot starters
0:07:17 3 - Use proper versions of the dependencies
0:09:27 4 - Use Lombok
0:15:06 5 - Use Controllers only for routing
0:15:06 6 - Use Services for business logic
0:17:42 7 - Use constructor injection with Lombok
0:21:07 8 - Use slf4j logging
0:00:00 9 - Use meaningful words for classes, methods, variables, and other attributes
0:00:00 10 - Bean validation
0:00:00 11 - Custom exception handling
0:00:00 12 - Use custom response object
...
...
JavaTechie you are such a brilliant guy to provide crisp information . Very grateful to you . This video made my weekend. BIG THANK YOU!!!!
Thanks buddy 😍
Great video. Thanks.
I want just to add others best practices:
1- Create application.yml for each environment
Ex: application-dev.yml - application-staging.yml ...
2- using library to map DTO like MapStruct...
3- using soft delete
4- using environment variables to avoid hard-coding
Yes I agreed and missed it .
Can you explain #2?
@@helloworld101 MapStruct simplifies the mapping process in Java by generating the mapping code based on defined interfaces. Ex: convert a DTO into an entity…
This is such high-quality and extremely useful information!
Thank you so much for sharing this, really appreciate it!
Great video. Helpful for everyone to watch! We definitely need more of these
This video is very helpful not just for beginners but also for people who want to revise clean code practices for interview !!!
Thanks a lot for such knowledgeable content that too for free of cost !!
No Words To Praise you..Be healthy ever my dear
Thnkx
Amazing practices! 🙌🏻 well explained
Several points here I had to discover by myself and learn how to practise them.
This is a nice video that showcases them (and many more) systematically and in one place.
Thumbs up!
Thanks for putting it all together. Really appreciate your effort :)
I cannot step out of video with out commenting. It's such a great content for any developer whether a fresher or experienced🎉🎉🎉
With this video you have shown an end to end project with great standards.
Thank you for appreciate the work
Keep learning
you are a gem ...keep making video like this , more power to you :)
Thanks so much Java Techie. You are just a blessing to most of us. Keep giving us helpful tutorials.
Really help full video to optimise the existing code following proper standards great job
Big fan. Thanks a lot man. You save my job.
Great Tutorial ! All the basics of spring boot API development covered. Really helpful for Beginners.
Java Techie, you doing amazing work.
Awesome...plz make a video on roadmap to learn springboot and microservices.
got to learn a lot of new things. You explain things very precisely and in a simple way. it feels like my elder brother is talking and explaining it to me. Thank you basant bhai. please never stop making videos. :D
Thank you Gaurav ☺️. So happy that it helps you
Great tutorial. Thank you so much Java Techie
another great video . Thank you Basanth👌
Useful lesson for beginners
Thanks You so much for sharing your knowledge
great sir bhala advice eita.
This video and code in project is next level, it is exactly same as industry standards students are lucky those who are learning from you.
If you have any paid prime course will definitely buy to upskill
Thanks Vijay for appreciating the efforts. Yes i have a few paid courses available devops for developers live class is going on and spring boot microservice recorded video of live class available. You can drop an email to javatechie4u@gmail.com to know more about courses
Wonderful information brother thank you for your efforts 💯💯❤
Thank you so much Basanth
This RUclips channel is great ❤❤
Very nice.. superb explanation. Thank you
Excellent video. Covers all the essentials things
great help for tech buddies
Wonderful information thanks for helping ❤️
very nice video, superb, much helpful
Thanks so much for this. Prepping for my technical interview. :)
Excelente video JavaTechie , Greetings from Peru 👌
It's too good and informative. Thank you team.
Thank you for the great video!!!
great stuff thankyou !
Greate video sir, thank you very much for detailed explanation... 🙏
if our project contains multiple services .is it neccessary to take the multiple exception handler class,and multiple exception Custom Exception..is there any alternate for that?
how to create custom response like this
Very much very helpful stuff!
In controlloler inside
ResponseEntity
Generic types shouldn’t be used raw (without type parameters) in variable declarations or return values. Doing so bypasses generic type checking, and defers the catch of unsafe code to runtime.
Solnarlint warnings. how to resolve it?
Hover your mouse sonarlint will give hints. Let me know if you are not able to resolve
Thanks 🎉
absolutely awesome
What I need to change If I use gradle instead of maven to apply this practices ? except for pom xml
Useful content has provided by great teacher!!!👍
I have a small doubt with regards to caching. After added the caching mechanism in application, the first request will reach to DB for fetching the details and store it in cache for serving the further requests. Whether the Spring would reach DB to fetch all the records if any new record inserted in DB in between?
No it will fire one single select query for new records
Great Video Sir very helpful and mandatory for developers
Good evening sir, is it a good practice to have multiple dto's in the spring boot project
Yes 👍
@@Javatechie Good morning sir, one more question how can we export data from one table to another without mapping the tables using spring boot hibernate?
Use spring batch if not simply you can write one shell script to do that
Sir, do you have any plan of making a video on Spring Integration Java DSL? I want to learn it, any guidance will help a lot
Really loved the content ❤️
Is it possible to use Internationalization in bean validation?
Need your advice
Not in bean validation but api level you can
Hi sir, Checkmarx and vulnerability pe ek video ban do sir, how to fix .
Sure Ravi
good day congratulate you for the content of the videos a question in the rest services is better to send the code or error messages. Additional that way should have a class that controls the errors for each dto beforehand thanks and success in your life both personal and professional.
Thank you so much❤❤
God bless you!
I see the struggle with yaml, well feature like such you will highly enjoy in Idea ultimate edition, I have switched from community to ultimate last quarter May'22 and so far didn't regret it.
Yeah it's awesome but chargeable
Loved it ❤️
Where can I grab the exceptional handling tutorial pin to pin explanation😊
Please check this video buddy 😊 ruclips.net/video/gPnd-hzM_6A/видео.html
U r my hero❤
Thank you Akash 🤠
Since I have been watching ur vdos...i m getting confident and comfortable in Java...
Sir what is the usage of Compatablefuture in java 8😊
Could you please check my completablefeature video
Ok sir thank you for quick response
Sir you used PhysicalNaming strategy in your yml file but why your instance variables not showing in order in database why sir please tell me any one of the solution because I want to store in order how
Please give me reply
Hi, how is ur experience with mac as developer? Want to know diff with win. 🙏
Yes it's simply cool 😎. Mac OS is really good for programming
Thank you this is what I wanted to know
Thanks for the Video bro :)
Thank you very much, really appreciated! Can you add dev and production part for caching, auditing, fetching modes too?
One importaint thing for Lombok is to generate these all things into bytecode after compilation😉😉...
Really a good one! Thanks
Please make a video on how to import config file from spring cloud/ external sources without exposing the config in project
Hi Everyone,
Please help me where I can find this PRODUCT-SERVICE project from the playlist.
super video...its helpful
We can also use java record instead of lombok
No record doesn't support Lombok and also it doesn't provide all what Lombok supports
I have a small doubt what is the difference between testing APIS in post man and writing Junit test cases?
both approaches motive is to check whether we are getting correct output or not
In production environment you can't test your post and put API from post man right?
@@Javatechie ok..Thanks for clarifying
51:55 LINE 39 WHAT DOES THIS SYMBOL MEANS?
What do you have an idea on generic in java ?
sir can u please provide resource for Spring Security and JWT Exception Handling.
Have you checked my jwt latest video I believe i covered there
Why you don't using interface in your code ?
Why should we maintain the status in response instead of direct results we must get the status response code with that in frontend we can validate it I think we are adding one more step 🪜 to that I think it's not required for failures and success
No it's required sometimes you will get status 200 but in code there will be NPE which you already handled or bypass
one small suggestion, it would have better if u could structure the packages based on product features rather application layers
I completely agree. I hate having my controllers, DTOs, and services all jumbled together-it just becomes a mess. I usually create global packages for things that should be shared globally, like bean configurations. What I typically do is create a package named "stories," and inside that, I’ll have a separate package for each story. Within each story package, I include the controller, service, validation, etc.
Also, when something isn't found, the correct HTTP status code should be 404, not 200.
Thanks again....
I like the error handling, but not the status code 200 for ProductNotFoundException. It should be 404.
Yes agree status should be 400 not 404
Sir, can you share the points you were going through.
Thanks a lot
Thanks❤🌹🙏
Very helpful video.Could you please make a video on React production ready app with webpack configuration on dev and prod env..
Helpful video
db connection is failing for me. any help
You need to encrypt your db password and use it .
Thanks for the video. Can you please create detailed series on maven builds, designing multi project structure using maven and its plugins??
Why yml instead of properties
Thanks
You are great
Guy , how to throw hibernate error message to client call ?
Wrap it in service with custom exceptions and then throw it from catch block
Hello sir,
Is there a best way to convert resttemplate response to users required dto response, rather than using Jsonnode and calling particular object.
For ex: in resttemplate
Users:[
{
Firstname:"java",
Lastname:"techie"
}]
I want
{
Firstname:"java",
Lastname:"techie"
}
Yes simply you can use like below
User user =RestTemplate.getForObject(URL, User.class)
Can you have a better discount for your microservices course? Also why it says it is only available for 356 days, does that mean that after that I have no access to the course?
Hi sheko , please drop an email to javatechie4u@gmail.com
@@Javatechie I am also student. Can you please provide us with less price..
Why to use "builder" ?
No click on that ~ it will show you type generic
Can anyone tell me what springboot developer do on a daily basis in a real time industry project?
Can you please provide us source code of this example. Please try to post source code here..
Link mentioned in video description buddy 😊
200 Thanks
Dude what is your secret.. how do you manage to learn the technologies that are released to be able to make tutorials about them?
No secret buddy. I'm just doing it as per viewers need 🥰
Bro timestamps?
Can u please share Source code
Link mentioned in video description please check
But its not opening just showing viewCode like this