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

Поделиться
HTML-код
  • Опубликовано: 31 дек 2024

Комментарии • 159

  • @paulsnehasish5830
    @paulsnehasish5830 11 месяцев назад +9

    as a working professional for 2 years in fullstack java, I can confirm this video is a gem

    • @chandanverma5521
      @chandanverma5521 4 месяца назад

      I want to become a Java Full stack developer..... please can you share me your experience and give me suggestions and guidance

  • @harshverm776
    @harshverm776 Год назад +8

    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  Год назад +1

      Thanks Harsh 🥰. Keep learning 👍

  • @brianwkinyua
    @brianwkinyua 25 дней назад

    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 года назад +25

    JavaTechie you are such a brilliant guy to provide crisp information . Very grateful to you . This video made my weekend. BIG THANK YOU!!!!

  • @lts8683
    @lts8683 2 года назад +21

    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 года назад +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 года назад +8

    This is such high-quality and extremely useful information!
    Thank you so much for sharing this, really appreciate it!

  • @AleksandarT10
    @AleksandarT10 2 года назад +10

    Great video. Helpful for everyone to watch! We definitely need more of these

  • @lakshmi8347
    @lakshmi8347 3 месяца назад +1

    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 !!

  • @srinivasamovva2735
    @srinivasamovva2735 Год назад +3

    No Words To Praise you..Be healthy ever my dear

  • @raunaqsingh6628
    @raunaqsingh6628 10 месяцев назад +2

    Amazing practices! 🙌🏻 well explained

  • @markosimic3732
    @markosimic3732 Год назад +1

    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!

  • @attrayadas8067
    @attrayadas8067 Год назад +2

    Thanks for putting it all together. Really appreciate your effort :)

  • @divyamahesh9032
    @divyamahesh9032 6 месяцев назад +1

    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

  • @Nikhil-Kumar-Ahlawat
    @Nikhil-Kumar-Ahlawat 2 года назад +4

    you are a gem ...keep making video like this , more power to you :)

  • @stevegathara8885
    @stevegathara8885 Год назад +1

    Thanks so much Java Techie. You are just a blessing to most of us. Keep giving us helpful tutorials.

  • @udit9337
    @udit9337 Год назад +2

    Really help full video to optimise the existing code following proper standards great job

  • @anjanx44
    @anjanx44 Год назад +2

    Big fan. Thanks a lot man. You save my job.

  • @ms.shyamlal
    @ms.shyamlal 2 года назад +4

    Great Tutorial ! All the basics of spring boot API development covered. Really helpful for Beginners.

  • @fullfun1234
    @fullfun1234 Год назад +2

    Java Techie, you doing amazing work.

  • @deviprasadhota2617
    @deviprasadhota2617 2 года назад +3

    Awesome...plz make a video on roadmap to learn springboot and microservices.

  • @gauravdewalkar4830
    @gauravdewalkar4830 Год назад +1

    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  Год назад +1

      Thank you Gaurav ☺️. So happy that it helps you

  • @kokalasoujanya2315
    @kokalasoujanya2315 8 месяцев назад +1

    Great tutorial. Thank you so much Java Techie

  • @umamaheswarreddy9204
    @umamaheswarreddy9204 2 года назад +2

    another great video . Thank you Basanth👌

  • @lavesh501
    @lavesh501 2 года назад +2

    Useful lesson for beginners
    Thanks You so much for sharing your knowledge

  • @johnvick8861
    @johnvick8861 Год назад +2

    great sir bhala advice eita.

  • @vijaysonawane3776
    @vijaysonawane3776 9 месяцев назад +1

    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  9 месяцев назад

      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

  • @srinivasaraju8399
    @srinivasaraju8399 Год назад +1

    Wonderful information brother thank you for your efforts 💯💯❤

  • @ramanag5680
    @ramanag5680 2 года назад +2

    Thank you so much Basanth

  • @srinivasaraju8399
    @srinivasaraju8399 Год назад

    This RUclips channel is great ❤❤

  • @pandiyarajramu749
    @pandiyarajramu749 2 года назад +2

    Very nice.. superb explanation. Thank you

  • @amitwarudkar2676
    @amitwarudkar2676 2 года назад +1

    Excellent video. Covers all the essentials things

  • @rohitkarambali779
    @rohitkarambali779 2 года назад +1

    great help for tech buddies

  • @yatendra__singh
    @yatendra__singh 2 года назад +2

    Wonderful information thanks for helping ❤️

  • @bvinodmca
    @bvinodmca 11 месяцев назад +1

    very nice video, superb, much helpful

  • @monsterhuntergo
    @monsterhuntergo 2 года назад +1

    Thanks so much for this. Prepping for my technical interview. :)

  • @erichhc9698
    @erichhc9698 2 года назад

    Excelente video JavaTechie , Greetings from Peru 👌

  • @JyotiKumari-jd9mf
    @JyotiKumari-jd9mf 2 года назад +1

    It's too good and informative. Thank you team.

  • @ainigma100
    @ainigma100 2 года назад +2

    Thank you for the great video!!!

  • @medAmineRg
    @medAmineRg 10 месяцев назад +1

    great stuff thankyou !

  • @hareeshjp
    @hareeshjp 2 года назад +1

    Greate video sir, thank you very much for detailed explanation... 🙏

  • @VELPULASIVAKRISHNA
    @VELPULASIVAKRISHNA 6 месяцев назад

    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?

  • @حامدنیکبخت-ن5ع
    @حامدنیکبخت-ن5ع 2 года назад +1

    how to create custom response like this

  • @Bloome_BlueFolf
    @Bloome_BlueFolf 2 года назад +2

    Very much very helpful stuff!

  • @bulbul-dev
    @bulbul-dev 2 года назад +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

  • @NeerajShukla-t8n
    @NeerajShukla-t8n 9 месяцев назад +1

    Thanks 🎉

  • @joeLinton-w1p
    @joeLinton-w1p 10 месяцев назад +1

    absolutely awesome

  • @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 года назад +1

    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

  • @manutyagi8019
    @manutyagi8019 2 года назад +1

    Great Video Sir very helpful and mandatory for developers

    • @manutyagi8019
      @manutyagi8019 2 года назад +1

      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 года назад +1

      @@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

  • @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

  • @Ace-yt7eo
    @Ace-yt7eo Год назад

    Really loved the content ❤️

  • @manigandansaravanan4043
    @manigandansaravanan4043 2 года назад +1

    Is it possible to use Internationalization in bean validation?
    Need your advice

    • @Javatechie
      @Javatechie  2 года назад

      Not in bean validation but api level you can

  • @RaviVerma-bg6ul
    @RaviVerma-bg6ul 2 года назад +2

    Hi sir, Checkmarx and vulnerability pe ek video ban do sir, how to fix .

  • @sarmientoluis89
    @sarmientoluis89 2 года назад +1

    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.

  • @evsatyamblog4218
    @evsatyamblog4218 Год назад +1

    Thank you so much❤❤

  • @veronicagenn8585
    @veronicagenn8585 Год назад +1

    God bless you!

  • @anandsingh-pw6mm
    @anandsingh-pw6mm 2 года назад +1

    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

  • @neerajmalhotra8277
    @neerajmalhotra8277 2 года назад +1

    Loved it ❤️

  • @omit_krish
    @omit_krish Год назад +1

    Where can I grab the exceptional handling tutorial pin to pin explanation😊

    • @Javatechie
      @Javatechie  Год назад

      Please check this video buddy 😊 ruclips.net/video/gPnd-hzM_6A/видео.html

  • @vindiesel-tn5xm
    @vindiesel-tn5xm Год назад +1

    U r my hero❤

    • @Javatechie
      @Javatechie  Год назад

      Thank you Akash 🤠

    • @vindiesel-tn5xm
      @vindiesel-tn5xm Год назад +1

      ​Since I have been watching ur vdos...i m getting confident and comfortable in Java...

  • @omit_krish
    @omit_krish Год назад +1

    Sir what is the usage of Compatablefuture in java 8😊

    • @Javatechie
      @Javatechie  Год назад

      Could you please check my completablefeature video

    • @omit_krish
      @omit_krish Год назад +1

      Ok sir thank you for quick response

  • @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

  • @Prakash-8876
    @Prakash-8876 Год назад +1

    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

  • @Vithal_Nivargi
    @Vithal_Nivargi 2 года назад

    Thank you this is what I wanted to know

  • @Aj-ld4ds
    @Aj-ld4ds 2 года назад +1

    Thanks for the Video bro :)

  • @esmelealemmihretu941
    @esmelealemmihretu941 2 года назад +3

    Thank you very much, really appreciated! Can you add dev and production part for caching, auditing, fetching modes too?

  • @premprakashrohan1
    @premprakashrohan1 2 года назад

    One importaint thing for Lombok is to generate these all things into bytecode after compilation😉😉...

  • @promitbanik1362
    @promitbanik1362 Год назад

    Really a good one! Thanks

  • @thesilentkiller3882
    @thesilentkiller3882 2 года назад

    Please make a video on how to import config file from spring cloud/ external sources without exposing the config in project

  • @IMRANANSARI-dq6rh
    @IMRANANSARI-dq6rh 9 месяцев назад

    Hi Everyone,
    Please help me where I can find this PRODUCT-SERVICE project from the playlist.

  • @vishalbhosale7747
    @vishalbhosale7747 2 года назад +1

    super video...its helpful

  • @elasingh3151
    @elasingh3151 Год назад +1

    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

  • @vineethchinna3951
    @vineethchinna3951 2 года назад +1

    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 года назад +5

      In production environment you can't test your post and put API from post man right?

    • @vineethchinna3951
      @vineethchinna3951 2 года назад +1

      @@Javatechie ok..Thanks for clarifying

  • @rickhunter8216
    @rickhunter8216 Год назад +1

    51:55 LINE 39 WHAT DOES THIS SYMBOL MEANS?

    • @Javatechie
      @Javatechie  Год назад

      What do you have an idea on generic in java ?

  • @gautamkumarray8279
    @gautamkumarray8279 Год назад +1

    sir can u please provide resource for Spring Security and JWT Exception Handling.

    • @Javatechie
      @Javatechie  Год назад +1

      Have you checked my jwt latest video I believe i covered there

  • @QuanLe-jh4lr
    @QuanLe-jh4lr 2 года назад +1

    Why you don't using interface in your code ?

  • @itsnarahari
    @itsnarahari 2 года назад +1

    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

  • @bvinodmca
    @bvinodmca 11 месяцев назад

    one small suggestion, it would have better if u could structure the packages based on product features rather application layers

    • @bmiguelmf
      @bmiguelmf 3 месяца назад +1

      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 года назад +1

    Thanks again....

  • @mars3142
    @mars3142 2 года назад +1

    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

  • @RaghuD-ch9bf
    @RaghuD-ch9bf Год назад

    Sir, can you share the points you were going through.

  • @VELPULASIVAKRISHNA
    @VELPULASIVAKRISHNA 6 месяцев назад

    Thanks a lot

  • @evsatyamblog4218
    @evsatyamblog4218 Год назад

    Thanks❤🌹🙏

  • @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..

  • @kishordige9721
    @kishordige9721 2 года назад +1

    Helpful video

  • @014anirban
    @014anirban 2 года назад +1

    db connection is failing for me. any help

    • @Javatechie
      @Javatechie  2 года назад

      You need to encrypt your db password and use it .

  • @vazzdoin
    @vazzdoin 2 года назад +1

    Thanks for the video. Can you please create detailed series on maven builds, designing multi project structure using maven and its plugins??

  • @andresgomez5592
    @andresgomez5592 3 месяца назад

    Why yml instead of properties

  • @lovetyagi5266
    @lovetyagi5266 2 года назад +1

    Thanks

  • @rambeersharma2091
    @rambeersharma2091 2 года назад +1

    You are great

  • @sinseyha381
    @sinseyha381 2 года назад +1

    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

  • @saravanasathish423
    @saravanasathish423 2 года назад +1

    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 года назад +2

      Yes simply you can use like below
      User user =RestTemplate.getForObject(URL, User.class)

  • @sheko4515
    @sheko4515 2 года назад +1

    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..

  • @pravindabhade185
    @pravindabhade185 2 года назад +1

    Why to use "builder" ?

    • @Javatechie
      @Javatechie  2 года назад +1

      No click on that ~ it will show you type generic

  • @kumarabhishek1064
    @kumarabhishek1064 Год назад

    Can anyone tell me what springboot developer do on a daily basis in a real time industry project?

  • @kasasrinivas5765
    @kasasrinivas5765 2 года назад +1

    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 😊

  • @mubarakahmed9060
    @mubarakahmed9060 2 года назад +1

    200 Thanks

  • @simoneric
    @simoneric 2 года назад +2

    Dude what is your secret.. how do you manage to learn the technologies that are released to be able to make tutorials about them?

    • @Javatechie
      @Javatechie  2 года назад

      No secret buddy. I'm just doing it as per viewers need 🥰

  • @kvnagendra5354
    @kvnagendra5354 Год назад +1

    Bro timestamps?

  • @taticherlagskmgs
    @taticherlagskmgs Год назад +1

    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