Spring Boot Best Practices For Developers 👨‍💻 | Productivity | JavaTechie

  Рет қаралды 88,384

Java Techie

Java Techie

Күн бұрын

Пікірлер: 159
@paulsnehasish5830
@paulsnehasish5830 11 ай бұрын
as a working professional for 2 years in fullstack java, I can confirm this video is a gem
@chandanverma5521
@chandanverma5521 3 ай бұрын
I want to become a Java Full stack developer..... please can you share me your experience and give me suggestions and guidance
@harshverm776
@harshverm776 Жыл бұрын
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.
@Javatechie
@Javatechie Жыл бұрын
Thanks Harsh 🥰. Keep learning 👍
@brianwkinyua
@brianwkinyua 15 күн бұрын
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 ... ...
@kalaiselvankesavel2971
@kalaiselvankesavel2971 2 жыл бұрын
JavaTechie you are such a brilliant guy to provide crisp information . Very grateful to you . This video made my weekend. BIG THANK YOU!!!!
@Javatechie
@Javatechie 2 жыл бұрын
Thanks buddy 😍
@lts8683
@lts8683 2 жыл бұрын
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
@Javatechie
@Javatechie 2 жыл бұрын
Yes I agreed and missed it .
@helloworld101
@helloworld101 11 ай бұрын
Can you explain #2?
@mateuslevi1300
@mateuslevi1300 11 ай бұрын
⁠@@helloworld101 MapStruct simplifies the mapping process in Java by generating the mapping code based on defined interfaces. Ex: convert a DTO into an entity…
@Arsy1999
@Arsy1999 2 жыл бұрын
This is such high-quality and extremely useful information! Thank you so much for sharing this, really appreciate it!
@lakshmi8347
@lakshmi8347 2 ай бұрын
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 !!
@AleksandarT10
@AleksandarT10 2 жыл бұрын
Great video. Helpful for everyone to watch! We definitely need more of these
@markosimic3732
@markosimic3732 Жыл бұрын
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!
@srinivasamovva2735
@srinivasamovva2735 Жыл бұрын
No Words To Praise you..Be healthy ever my dear
@rowland138
@rowland138 4 ай бұрын
Thnkx
@udit9337
@udit9337 Жыл бұрын
Really help full video to optimise the existing code following proper standards great job
@ms.shyamlal
@ms.shyamlal 2 жыл бұрын
Great Tutorial ! All the basics of spring boot API development covered. Really helpful for Beginners.
@divyamahesh9032
@divyamahesh9032 6 ай бұрын
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.
@Javatechie
@Javatechie 6 ай бұрын
Thank you for appreciate the work Keep learning
@stevegathara8885
@stevegathara8885 Жыл бұрын
Thanks so much Java Techie. You are just a blessing to most of us. Keep giving us helpful tutorials.
@attrayadas8067
@attrayadas8067 Жыл бұрын
Thanks for putting it all together. Really appreciate your effort :)
@Nikhil-Kumar-Ahlawat
@Nikhil-Kumar-Ahlawat 2 жыл бұрын
you are a gem ...keep making video like this , more power to you :)
@deviprasadhota2617
@deviprasadhota2617 2 жыл бұрын
Awesome...plz make a video on roadmap to learn springboot and microservices.
@raunaqsingh6628
@raunaqsingh6628 10 ай бұрын
Amazing practices! 🙌🏻 well explained
@anjanx44
@anjanx44 Жыл бұрын
Big fan. Thanks a lot man. You save my job.
@gauravdewalkar4830
@gauravdewalkar4830 Жыл бұрын
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
@Javatechie
@Javatechie Жыл бұрын
Thank you Gaurav ☺️. So happy that it helps you
@fullfun1234
@fullfun1234 Жыл бұрын
Java Techie, you doing amazing work.
@lavesh501
@lavesh501 2 жыл бұрын
Useful lesson for beginners Thanks You so much for sharing your knowledge
@johnvick8861
@johnvick8861 Жыл бұрын
great sir bhala advice eita.
@kokalasoujanya2315
@kokalasoujanya2315 7 ай бұрын
Great tutorial. Thank you so much Java Techie
@vijaysonawane3776
@vijaysonawane3776 8 ай бұрын
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
@Javatechie
@Javatechie 8 ай бұрын
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
@umamaheswarreddy9204
@umamaheswarreddy9204 2 жыл бұрын
another great video . Thank you Basanth👌
@bulbul-dev
@bulbul-dev 2 жыл бұрын
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?
@Javatechie
@Javatechie 2 жыл бұрын
Hover your mouse sonarlint will give hints. Let me know if you are not able to resolve
@VELPULASIVAKRISHNA
@VELPULASIVAKRISHNA 5 ай бұрын
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?
@pandiyarajramu749
@pandiyarajramu749 2 жыл бұрын
Very nice.. superb explanation. Thank you
@manigandansaravanan4043
@manigandansaravanan4043 2 жыл бұрын
Is it possible to use Internationalization in bean validation? Need your advice
@Javatechie
@Javatechie 2 жыл бұрын
Not in bean validation but api level you can
@ramanag5680
@ramanag5680 2 жыл бұрын
Thank you so much Basanth
@attrayadas8067
@attrayadas8067 Жыл бұрын
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
@srinivasaraju8399
@srinivasaraju8399 Жыл бұрын
Wonderful information brother thank you for your efforts 💯💯❤
@monsterhuntergo
@monsterhuntergo 2 жыл бұрын
Thanks so much for this. Prepping for my technical interview. :)
@amitwarudkar2676
@amitwarudkar2676 2 жыл бұрын
Excellent video. Covers all the essentials things
@Prakash-gz6py
@Prakash-gz6py Жыл бұрын
Hi, how is ur experience with mac as developer? Want to know diff with win. 🙏
@Javatechie
@Javatechie Жыл бұрын
Yes it's simply cool 😎. Mac OS is really good for programming
@rickhunter8216
@rickhunter8216 Жыл бұрын
51:55 LINE 39 WHAT DOES THIS SYMBOL MEANS?
@Javatechie
@Javatechie Жыл бұрын
What do you have an idea on generic in java ?
@yatendra__singh
@yatendra__singh 2 жыл бұрын
Wonderful information thanks for helping ❤️
@JyotiKumari-jd9mf
@JyotiKumari-jd9mf 2 жыл бұрын
It's too good and informative. Thank you team.
@omit_krish
@omit_krish Жыл бұрын
Sir what is the usage of Compatablefuture in java 8😊
@Javatechie
@Javatechie Жыл бұрын
Could you please check my completablefeature video
@omit_krish
@omit_krish Жыл бұрын
Ok sir thank you for quick response
@srinivasaraju8399
@srinivasaraju8399 Жыл бұрын
This KZbin channel is great ❤❤
@omit_krish
@omit_krish Жыл бұрын
Where can I grab the exceptional handling tutorial pin to pin explanation😊
@Javatechie
@Javatechie Жыл бұрын
Please check this video buddy 😊 kzbin.info/www/bejne/nYHRlWCer7KSbKM
@rohitkarambali779
@rohitkarambali779 2 жыл бұрын
great help for tech buddies
@Thomastinio666
@Thomastinio666 2 жыл бұрын
What I need to change If I use gradle instead of maven to apply this practices ? except for pom xml
@ajithansehivakanan6708
@ajithansehivakanan6708 2 жыл бұрын
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
@Javatechie 2 жыл бұрын
No it will fire one single select query for new records
@gautamkumarray8279
@gautamkumarray8279 Жыл бұрын
sir can u please provide resource for Spring Security and JWT Exception Handling.
@Javatechie
@Javatechie Жыл бұрын
Have you checked my jwt latest video I believe i covered there
@esmelealemmihretu941
@esmelealemmihretu941 2 жыл бұрын
Thank you very much, really appreciated! Can you add dev and production part for caching, auditing, fetching modes too?
@erichhc9698
@erichhc9698 2 жыл бұрын
Excelente video JavaTechie , Greetings from Peru 👌
@IMRANANSARI-dq6rh
@IMRANANSARI-dq6rh 9 ай бұрын
Hi Everyone, Please help me where I can find this PRODUCT-SERVICE project from the playlist.
@ainigma100
@ainigma100 2 жыл бұрын
Thank you for the great video!!!
@hareeshjp
@hareeshjp 2 жыл бұрын
Greate video sir, thank you very much for detailed explanation... 🙏
@bvinodmca
@bvinodmca 10 ай бұрын
very nice video, superb, much helpful
@vineethchinna3951
@vineethchinna3951 2 жыл бұрын
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
@Javatechie
@Javatechie 2 жыл бұрын
In production environment you can't test your post and put API from post man right?
@vineethchinna3951
@vineethchinna3951 2 жыл бұрын
@@Javatechie ok..Thanks for clarifying
@sarmientoluis89
@sarmientoluis89 2 жыл бұрын
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.
@حامدنیکبخت-ن5ع
@حامدنیکبخت-ن5ع 2 жыл бұрын
how to create custom response like this
@RaviVerma-bg6ul
@RaviVerma-bg6ul 2 жыл бұрын
Hi sir, Checkmarx and vulnerability pe ek video ban do sir, how to fix .
@Javatechie
@Javatechie 2 жыл бұрын
Sure Ravi
@Bloome_BlueFolf
@Bloome_BlueFolf 2 жыл бұрын
Very much very helpful stuff!
@bhavanisankar71
@bhavanisankar71 Жыл бұрын
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
@bhavanisankar71
@bhavanisankar71 Жыл бұрын
Please give me reply
@anandsingh-pw6mm
@anandsingh-pw6mm 2 жыл бұрын
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
@Javatechie 2 жыл бұрын
Yeah it's awesome but chargeable
@elasingh3151
@elasingh3151 Жыл бұрын
We can also use java record instead of lombok
@Javatechie
@Javatechie Жыл бұрын
No record doesn't support Lombok and also it doesn't provide all what Lombok supports
@saravanasathish423
@saravanasathish423 2 жыл бұрын
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" }
@Javatechie
@Javatechie 2 жыл бұрын
Yes simply you can use like below User user =RestTemplate.getForObject(URL, User.class)
@medAmineRg
@medAmineRg 9 ай бұрын
great stuff thankyou !
@joeLinton-w1p
@joeLinton-w1p 10 ай бұрын
absolutely awesome
@mars3142
@mars3142 2 жыл бұрын
I like the error handling, but not the status code 200 for ProductNotFoundException. It should be 404.
@Javatechie
@Javatechie 2 жыл бұрын
Yes agree status should be 400 not 404
@QuanLe-jh4lr
@QuanLe-jh4lr 2 жыл бұрын
Why you don't using interface in your code ?
@manutyagi8019
@manutyagi8019 2 жыл бұрын
Great Video Sir very helpful and mandatory for developers
@manutyagi8019
@manutyagi8019 2 жыл бұрын
Good evening sir, is it a good practice to have multiple dto's in the spring boot project
@Javatechie
@Javatechie 2 жыл бұрын
Yes 👍
@manutyagi8019
@manutyagi8019 2 жыл бұрын
@@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?
@Javatechie
@Javatechie 2 жыл бұрын
Use spring batch if not simply you can write one shell script to do that
@veronicagenn8585
@veronicagenn8585 Жыл бұрын
God bless you!
@RaghuD-ch9bf
@RaghuD-ch9bf Жыл бұрын
Sir, can you share the points you were going through.
@NeerajShukla-t8n
@NeerajShukla-t8n 9 ай бұрын
Thanks 🎉
@itsnarahari
@itsnarahari 2 жыл бұрын
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
@Javatechie
@Javatechie 2 жыл бұрын
No it's required sometimes you will get status 200 but in code there will be NPE which you already handled or bypass
@vindiesel-tn5xm
@vindiesel-tn5xm Жыл бұрын
U r my hero❤
@Javatechie
@Javatechie Жыл бұрын
Thank you Akash 🤠
@vindiesel-tn5xm
@vindiesel-tn5xm Жыл бұрын
​Since I have been watching ur vdos...i m getting confident and comfortable in Java...
@thesilentkiller3882
@thesilentkiller3882 2 жыл бұрын
Please make a video on how to import config file from spring cloud/ external sources without exposing the config in project
@evsatyamblog4218
@evsatyamblog4218 Жыл бұрын
Thank you so much❤❤
@014anirban
@014anirban 2 жыл бұрын
db connection is failing for me. any help
@Javatechie
@Javatechie 2 жыл бұрын
You need to encrypt your db password and use it .
@neerajmalhotra8277
@neerajmalhotra8277 2 жыл бұрын
Loved it ❤️
@vazzdoin
@vazzdoin 2 жыл бұрын
Thanks for the video. Can you please create detailed series on maven builds, designing multi project structure using maven and its plugins??
@premprakashrohan1
@premprakashrohan1 2 жыл бұрын
One importaint thing for Lombok is to generate these all things into bytecode after compilation😉😉...
@nageshpatel889
@nageshpatel889 2 жыл бұрын
Very helpful video.Could you please make a video on React production ready app with webpack configuration on dev and prod env..
@Ace-yt7eo
@Ace-yt7eo Жыл бұрын
Really loved the content ❤️
@sheko4515
@sheko4515 2 жыл бұрын
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?
@Javatechie
@Javatechie 2 жыл бұрын
Hi sheko , please drop an email to javatechie4u@gmail.com
@kasasrinivas5765
@kasasrinivas5765 2 жыл бұрын
@@Javatechie I am also student. Can you please provide us with less price..
@sinseyha381
@sinseyha381 2 жыл бұрын
Guy , how to throw hibernate error message to client call ?
@Javatechie
@Javatechie 2 жыл бұрын
Wrap it in service with custom exceptions and then throw it from catch block
@Aj-ld4ds
@Aj-ld4ds 2 жыл бұрын
Thanks for the Video bro :)
@vishalbhosale7747
@vishalbhosale7747 2 жыл бұрын
super video...its helpful
@promitbanik1362
@promitbanik1362 Жыл бұрын
Really a good one! Thanks
@pravindabhade185
@pravindabhade185 2 жыл бұрын
Why to use "builder" ?
@Javatechie
@Javatechie 2 жыл бұрын
No click on that ~ it will show you type generic
@andresgomez5592
@andresgomez5592 3 ай бұрын
Why yml instead of properties
@Vithal_Nivargi
@Vithal_Nivargi 2 жыл бұрын
Thank you this is what I wanted to know
@evsatyamblog4218
@evsatyamblog4218 Жыл бұрын
Thanks❤🌹🙏
@bvinodmca
@bvinodmca 10 ай бұрын
one small suggestion, it would have better if u could structure the packages based on product features rather application layers
@bmiguelmf
@bmiguelmf 3 ай бұрын
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.
@PappuKumar-ho3ek
@PappuKumar-ho3ek 2 жыл бұрын
Thanks again....
@kumarabhishek1064
@kumarabhishek1064 Жыл бұрын
Can anyone tell me what springboot developer do on a daily basis in a real time industry project?
@kishordige9721
@kishordige9721 2 жыл бұрын
Helpful video
@VELPULASIVAKRISHNA
@VELPULASIVAKRISHNA 5 ай бұрын
Thanks a lot
@rambeersharma2091
@rambeersharma2091 2 жыл бұрын
You are great
@lovetyagi5266
@lovetyagi5266 2 жыл бұрын
Thanks
@kasasrinivas5765
@kasasrinivas5765 2 жыл бұрын
Can you please provide us source code of this example. Please try to post source code here..
@Javatechie
@Javatechie 2 жыл бұрын
Link mentioned in video description buddy 😊
@taticherlagskmgs
@taticherlagskmgs Жыл бұрын
Can u please share Source code
@Javatechie
@Javatechie Жыл бұрын
Link mentioned in video description please check
@taticherlagskmgs
@taticherlagskmgs Жыл бұрын
But its not opening just showing viewCode like this
@jopadjr
@jopadjr 2 жыл бұрын
257th...Thanks... Great, Great video..Cheers
@kvnagendra5354
@kvnagendra5354 Жыл бұрын
Bro timestamps?
@mubarakahmed9060
@mubarakahmed9060 2 жыл бұрын
200 Thanks
coco在求救? #小丑 #天使 #shorts
00:29
好人小丑
Рет қаралды 120 МЛН
Tuna 🍣 ​⁠@patrickzeinali ​⁠@ChefRush
00:48
albert_cancook
Рет қаралды 148 МЛН
Creating SOAP Web Service in Spring
31:34
Developer Hut
Рет қаралды 52
4 Spring Boot Mistakes to AVOID in 2024
15:18
Java Brains
Рет қаралды 65 М.
Microservices using SpringBoot | Full Example
1:21:39
Daily Code Buffer
Рет қаралды 1 МЛН
Rest API - Best Practices - Design
15:50
High-Performance Programming
Рет қаралды 114 М.
10 Spring and Spring Boot Common Mistakes You Need To STOP
15:49
Amigoscode
Рет қаралды 160 М.
coco在求救? #小丑 #天使 #shorts
00:29
好人小丑
Рет қаралды 120 МЛН