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 !!
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.
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!
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
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.
@@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?
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?
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?
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.
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?
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.
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
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 👍
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 😍
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
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 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 !!
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
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
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!
No Words To Praise you..Be healthy ever my dear
Thnkx
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.
Amazing practices! 🙌🏻 well explained
Great Tutorial ! All the basics of spring boot API development covered. Really helpful for Beginners.
Big fan. Thanks a lot man. You save my job.
Thanks for putting it all together. Really appreciate your effort :)
Really help full video to optimise the existing code following proper standards great job
Java Techie, you doing amazing work.
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
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
great sir bhala advice eita.
Great tutorial. Thank you so much Java Techie
Useful lesson for beginners
Thanks You so much for sharing your knowledge
another great video . Thank you Basanth👌
Awesome...plz make a video on roadmap to learn springboot and microservices.
Thank you so much Basanth
Very nice.. superb explanation. Thank you
This RUclips channel is great ❤❤
great help for tech buddies
Excellent video. Covers all the essentials things
Thank you for the great video!!!
Thanks so much for this. Prepping for my technical interview. :)
It's too good and informative. Thank you team.
Wonderful information brother thank you for your efforts 💯💯❤
Wonderful information thanks for helping ❤️
Excelente video JavaTechie , Greetings from Peru 👌
Very much very helpful stuff!
very nice video, superb, much helpful
great stuff thankyou !
Greate video sir, thank you very much for detailed explanation... 🙏
Loved it ❤️
absolutely awesome
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
Really loved the content ❤️
God bless you!
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
Thanks 🎉
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
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
U r my hero❤
Thank you Akash 🤠
Since I have been watching ur vdos...i m getting confident and comfortable in Java...
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?
Thanks for the Video bro :)
Thank you so much❤❤
Sir what is the usage of Compatablefuture in java 8😊
Could you please check my completablefeature video
Ok sir thank you for quick response
Hi sir, Checkmarx and vulnerability pe ek video ban do sir, how to fix .
Sure Ravi
super video...its helpful
Is it possible to use Internationalization in bean validation?
Need your advice
Not in bean validation but api level you can
One importaint thing for Lombok is to generate these all things into bytecode after compilation😉😉...
Really a good one! Thanks
Where can I grab the exceptional handling tutorial pin to pin explanation😊
Please check this video buddy 😊 ruclips.net/video/gPnd-hzM_6A/видео.html
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
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 very much, really appreciated! Can you add dev and production part for caching, auditing, fetching modes too?
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
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
Thanks again....
how to create custom response like this
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
Please make a video on how to import config file from spring cloud/ external sources without exposing the config in project
What I need to change If I use gradle instead of maven to apply this practices ? except for pom xml
51:55 LINE 39 WHAT DOES THIS SYMBOL MEANS?
What do you have an idea on generic in java ?
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.
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
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
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
Hi Everyone,
Please help me where I can find this PRODUCT-SERVICE project from the playlist.
Sir, can you share the points you were going through.
Helpful video
Why you don't using interface in your code ?
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
You are great
Very helpful video.Could you please make a video on React production ready app with webpack configuration on dev and prod env..
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)
Thanks a lot
Thanks❤🌹🙏
Thanks for the video. Can you please create detailed series on maven builds, designing multi project structure using maven and its plugins??
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..
db connection is failing for me. any help
You need to encrypt your db password and use it .
Thanks
Guy , how to throw hibernate error message to client call ?
Wrap it in service with custom exceptions and then throw it from catch block
Why to use "builder" ?
No click on that ~ it will show you type generic
Why yml instead of properties
Can you please provide us source code of this example. Please try to post source code here..
Link mentioned in video description buddy 😊
257th...Thanks... Great, Great video..Cheers
Can anyone tell me what springboot developer do on a daily basis in a real time industry project?
Can u please share Source code
Link mentioned in video description please check
But its not opening just showing viewCode like this
man... there are so many voice-over text already... I am begging you to start using it
Not getting you buddy. Are you facing issues?
@@Javatechie, excellent content, but I need help understanding what you are talking. In addition, your videos will start looking more professional.
Bro timestamps?