Spring Boot WebFlux | Global Exception Handling | Functional Endpoints | JavaTechie

แชร์
ฝัง
  • เผยแพร่เมื่อ 2 ก.พ. 2025

ความคิดเห็น • 41

  • @diazchg
    @diazchg 2 ปีที่แล้ว +3

    Ahhhhhhhhh, finally! Exception handling hs been Hard for me while learning functional programming. Thanks!!

  • @tohirasadov689
    @tohirasadov689 2 ปีที่แล้ว +5

    Finally! Best example. Best of all the best

  • @arunpallayil9485
    @arunpallayil9485 2 ปีที่แล้ว +1

    Nicely done! Great explanation as usual! Thank you!

  • @AGAGARCIA
    @AGAGARCIA 2 ปีที่แล้ว +1

    Great Job. Thanks for share your knowledge.

  • @vishalkaushal4311
    @vishalkaushal4311 2 ปีที่แล้ว +1

    You are seriously great.
    Hats off.

  • @MCitizen
    @MCitizen 8 หลายเดือนก่อน +1

    Great tuto!! thanks man!

  • @kubickrock572
    @kubickrock572 2 ปีที่แล้ว +1

    Thank you man ! Great video.

  • @sureshbabu4167
    @sureshbabu4167 2 ปีที่แล้ว +1

    Superb brother as usual 👏 👌

  • @life.at_7000rpm
    @life.at_7000rpm ปีที่แล้ว +1

    In case the custom handler does not take effect, add @Order(-2) on your handler class to give it a higher priority than the DefaultErrorWebExceptionHandler.

  • @amazingboy8860
    @amazingboy8860 ปีที่แล้ว

    You are awesome sir

  • @malleswarrao3887
    @malleswarrao3887 ปีที่แล้ว +1

    Super

  • @Saravanan-lj9so
    @Saravanan-lj9so 2 ปีที่แล้ว +1

    Great.In the real time every one use storedprocedure call for database. Can we call sp from reactive program?

    • @Javatechie
      @Javatechie  2 ปีที่แล้ว

      I guess yes we can but let me check

  • @anthonya880
    @anthonya880 2 ปีที่แล้ว +1

    Request you to please make some content explaining Spring Api Gateway vs Kubernets Ingress.
    Which one should we use?
    Or can we use both together ?

  • @ajisegirisunday2885
    @ajisegirisunday2885 2 ปีที่แล้ว +1

    Thanks you are the best... Please can you do a video using hibernate with spring webflux 🙏

  • @harshverm776
    @harshverm776 ปีที่แล้ว +1

    Hi, It is looking bit tough then our traditional rest endpoints.
    Could you please suggest some topic to learn this Functional Programming ?

    • @Javatechie
      @Javatechie  ปีที่แล้ว +1

      I would suggest you to be a master in java 8 before start reactive functional programming

    • @harshverm776
      @harshverm776 ปีที่แล้ว +1

      @@Javatechie Okay, but I am already having knowledge of Java 8.

    • @Javatechie
      @Javatechie  ปีที่แล้ว +1

      Then you can easily grab a reactive functional style of coding. Keep practicing

    • @harshverm776
      @harshverm776 ปีที่แล้ว

      @@Javatechie Okay, Thank you.

  • @faithfulolaleru7255
    @faithfulolaleru7255 2 ปีที่แล้ว +1

    this saved me a lot of trial and error, thanks. But quick question, instead of having one fixed status of bad request in global error attributes, how can I make it dynamic so when I throw a new exception, I can pass along the status I want with it, be it 404 not found or 401 unauthorized

    • @Javatechie
      @Javatechie  2 ปีที่แล้ว

      You can use @ResponseStatus annotations

    • @faithfulolaleru7255
      @faithfulolaleru7255 2 ปีที่แล้ว +1

      @@Javatechie thanks for the reply, I've read on the annotation and still a little bit confused. After putting the @ResponseStatus on the different exception classes, in the getErrorAttributes(), we are hardcoding the fields to be returned, how can I make those fields change their values i.e I added a statusCode field that I want to display with my error response, how can I update it in getErrorAttributes() based off what exception is being hit?

    • @Javatechie
      @Javatechie  2 ปีที่แล้ว +1

      No buddy how it's hardcoded . To make it dynamic better to create multiple exception class use one for 400 and different for 500 like that

    • @faithfulolaleru7255
      @faithfulolaleru7255 2 ปีที่แล้ว

      @@Javatechie I have multiple exception classes with different responseStatuses, but check 17:35, it'll always return bad request regardless of which exception class it hits. So in getErrorAttributes() (check from 24:45) , I added an httpStatus field to my map, that I now get in the exceptionHandler to set the status. So my question now is, how to I change the httpStatus field in getErrorAttributes() to change depending on which exception is hit in the application

  • @malleswarrao3887
    @malleswarrao3887 ปีที่แล้ว

    Can you please tell me how can I validate the model data in reactive programming

  • @ayushmittal7059
    @ayushmittal7059 2 ปีที่แล้ว

    Thanks a lot , it was really helpful also can you help in writing the unit test cases of these 2 classes that exception handler and global error attributes as for my project only 3% coverage is there for these 2 classes

  • @kumarguru3044
    @kumarguru3044 2 ปีที่แล้ว

    Can you also explain about both WebClient and rest template which is used to call from one rest service to another rest service

  • @SatyaPrakash-gj5vp
    @SatyaPrakash-gj5vp ปีที่แล้ว +1

    Could you please make a a video on ReactiveSecurityContextHolder

    • @Javatechie
      @Javatechie  ปีที่แล้ว

      Okay i will do that

  • @aloshy7717
    @aloshy7717 ปีที่แล้ว

    Not getting how to handle multiple custom exceptions

  • @振璞尚
    @振璞尚 8 หลายเดือนก่อน

    cloud u give me your font settings? Thanks!

  • @gajanankanekar9118
    @gajanankanekar9118 4 หลายเดือนก่อน

    Not a single word from your screen is readable

    • @Javatechie
      @Javatechie  4 หลายเดือนก่อน +1

      I don’t know how you watch the video in mobile or pc 🖥️, the video resolution set to 1080 HD I can able to watch clearly in my mobile and laptop please check your internet connectivity and also increase the resolution in TH-cam. I hope you are aware about this process so please try and let me know if any further assistance required

  • @botyironcastle
    @botyironcastle 10 หลายเดือนก่อน

    this shows how slow working with java is

    • @Javatechie
      @Javatechie  10 หลายเดือนก่อน

      It looks like you are not much aware about benefits of java please check pros and cons of it

  • @prosenjitdutta2026
    @prosenjitdutta2026 ปีที่แล้ว +1

    Video quality not good.

    • @Javatechie
      @Javatechie  ปีที่แล้ว

      Hello buddy apologies for this please increase the resolution. Since this is the old video resolution Ava up to 720 HD.
      All recent videos are available in 4k