🚀 New in Spring Framework 6.1: RestClient

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

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

  • @ИльяСемьянов-ф3у
    @ИльяСемьянов-ф3у 18 дней назад

    dear friend, thank you very much for this video. I know I watched it, and then I watched many others. then for a long time I remembered where to find you)) after watching this material again, everything became absolutely clear. this is definitely the best material. Thank you!

  • @pad5724
    @pad5724 Год назад +6

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

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

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

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

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

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

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

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

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

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

    Nice, using the interfaces will make things much cleaner.

  • @ViniciusVille
    @ViniciusVille 10 месяцев назад

    Congratulations! Great content 👏

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

    Great presentation. Thanks a lot

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

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

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

  • @Mohamed-uf5jh
    @Mohamed-uf5jh 8 месяцев назад

    thanks, you make very easy !

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

    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

  • @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 Год назад

    How to configure RestClient with OAuth2 and call protected endpoints

  • @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 Год назад

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

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

    Great...

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

    I subscribed❤

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

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

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