🚀 New in Spring Framework 6.1: RestClient

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

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

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

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

  • @JuanPabloLópezSánchez-j8x
    @JuanPabloLópezSánchez-j8x 11 месяцев назад +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?

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

    Great...

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

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

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

  • @rahuldebnath3919
    @rahuldebnath3919 9 месяцев назад

    How to configure RestClient with OAuth2 and call protected endpoints

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

    what about FeignClient is it stil good

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

    More like a feign set with fixed lookup

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

    thanks, you make very easy !

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

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

  • @MrSurprise777
    @MrSurprise777 9 месяцев назад

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

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

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

    Great Insight

  • @KonstantinZheludkov
    @KonstantinZheludkov 9 месяцев назад

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

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

    Nice, using the interfaces will make things much cleaner.

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

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

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

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

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

    Congratulations! Great content 👏

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

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