🚀 New in Spring Framework 6.1: RestClient

แชร์
ฝัง
  • เผยแพร่เมื่อ 15 ต.ค. 2024

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

  • @pad5724
    @pad5724 ปีที่แล้ว +6

    Excellent, thanks.. I hope you will continue to upload often ☺️

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

      Thank you! That's the plan 🙂

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

    loved how you gave really good and concise examples and explanation. Thanks for making the video!

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

      Thank you for such a nice feedback! I'm super happy you found it useful!

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

    That's so nice! The declarative option using interface is very useful.

  • @KonstantinZheludkov
    @KonstantinZheludkov 9 หลายเดือนก่อน

    Thanks, it is nice material. Good overall overview without annoying details.

  • @JuanPabloLópezSánchez-j8x
    @JuanPabloLópezSánchez-j8x ปีที่แล้ว +5

    But how can we manage errors? For example: external api returns 404. How can I handle that api response body to return that exact same message using my own ApiErrorDTO?

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

    Briefly and understandable, thanks!
    Important note that by default RestClient uses Java HttpClient introduced in Java 11

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

    Nice, using the interfaces will make things much cleaner.

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

    Great presentation. Thanks a lot

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

    Well done. Quick question can you use still flux / mono in the interface? E.g `public Flux …..`

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

      Not sure if RestClient handles it but anyway I don't think it would bring any value. For reactive interfaces you can still use WebClient under the hood

  • @ViniciusVille
    @ViniciusVille 7 หลายเดือนก่อน

    Congratulations! Great content 👏

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

    Awesome new component! I was messing around with it but i didn't get working the RestClient with OAuth2 client_credentials, it could be that spring security support is currently a WIP? Excelent channel BTW!!

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

      Likely. It's still few months before the RC so I'm pretty sure they'll fill the gaps

  • @Mohamed-uf5jh
    @Mohamed-uf5jh 6 หลายเดือนก่อน

    thanks, you make very easy !

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

    Great Insight

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

    Thanks for the video. I would like to understand how to enable micrometer tracing with RestClient? using RestClient.Builder when creating the bean and using that is not propagating the traceparent header to other api service.

  • @chardou85
    @chardou85 11 หลายเดือนก่อน

    It's look like Spring Cloud OpenFeign. Is there any difference between this two ? The usage of RestClient over Feign is now recommended by Spring ?

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

    what about FeignClient is it stil good

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

    Hi, Will learning Spring Webflux boost my resume ?
    Please give me your opinion.

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

      It definitely will but considering how niche the reactive programming is I would recommend learning something more mainstream to boost your resume

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

      As long as you don't become one of those devs that uses reactive for everything, recently had to refactor a whole new service because an overeager dev used reactive for a simple rest microservice and FE guys said they wanted pagination after I took over.
      It's important to learn when to use reactive programming, it's an overkill tool for simple services.

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

      Thank you guys for replying.

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

      @@SpringAcademywhat are the mainstream alternatives to webflux? I just learnt vertx and use it instead of webflux. So I’m wondering if I really need to learn webflux

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

    Does anybody know which Spring Boot version will use the Spring Framework 6.1?

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

      Spring Boot 3.2. Check calendar.spring.io/ for release dates

  • @rahuldebnath3919
    @rahuldebnath3919 9 หลายเดือนก่อน

    How to configure RestClient with OAuth2 and call protected endpoints

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

    Great...

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

    Out of curiousity, why didn't you want add Webflux and WebClient as a dependency?

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

      If dependency brings no to little value I just prefer to avoid it. Especially considering how spring boot autoconfiguration behavior changes depending on what's on the class path

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

    Does this also work with virtual threads?

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

      It depends if the underlying low level HTTP client works with virtual threads. I'm sure that all major ones eventually will or they already do considering how virtual threads are easy to use in existing application.

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

    I subscribed❤

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

    More like a feign set with fixed lookup

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

    i cannot hear you

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

      Why's that so? Too quiet or not clear?

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

      i turned off my headphones@@SpringAcademy