Maciej Walkowiak 🍃 Spring Academy
Maciej Walkowiak 🍃 Spring Academy
  • Видео 25
  • Просмотров 533 787
🚀 New in Spring Framework 6.1: RestClient
#springboot #springframework
Spring Framework 6.1 introduces a new way to interact with HTTP services: RestClient.
In this video you will learn:
- why a new HTTP client in Spring stack
- how RestClient is different from RestTemplate and WebClient
- how to use RestClient with Spring Boot
- how to use RestClient with declarative HTTP interfaces introduced in Spring Framework 6
Follow me on twitter for more Java & Spring updates: maciejwalkowiak
0:00 Why do we need a new HTTP client?
1:45 RestClient in action
8:03 RestClient with declarative HTTP interfaces
10:32 Things you should know
11:57 Will I use RestClient in new project?
Просмотров: 10 103

Видео

🍃 Introduction to Spring GraphQL with Spring Boot
Просмотров 59 тыс.2 года назад
Spring Fundamentals 👉 springacademy.io Follow on Twitter for more Spring content 👉 maciejwalkowiak This video is a step by step tutorial showing how to build GraphQL API with Spring Boot and Spring Boot GraphQL. I'll appreciate if you give it 👍 and share with your colleagues!
🚀 New in Spring Framework 6: HTTP Interfaces
Просмотров 52 тыс.2 года назад
Spring Fundamentals 👉 springacademy.io Follow on Twitter for more Spring content 👉 maciejwalkowiak In this video we will take a look at HTTP Interfaces - a brand new feature added to Spring Framework 6 that lets us declare HTTP clients as an annotated interface and let Spring generate the implementation for us: docs.spring.io/spring-framework/docs/6.0.0-SNAPSHOT/reference/html/integ...
Spring Puzzle - The one thing you must know about Hibernate & JPA!
Просмотров 4,1 тыс.3 года назад
Spring Fundamentals 👉 springacademy.io Correct answer and explanation 👉 ruclips.net/video/wfUTCTr4_c0/видео.html Follow on Twitter for more puzzles & Spring content 👉 maciejwalkowiak 0:00 - What is going on here? 0:36 - The Puzzle 2:24 - The answer & explanation 6:19 - Spring Fundamentals Course announcement
⭐ Bootiful Exception Reporting with Sentry & Spring Boot
Просмотров 11 тыс.3 года назад
0:00 - The problem with error reporting 0:54 - What is Sentry? 3:49 - Sentry Spring Boot Integration 7:11 - Attaching user information to Sentry events 8:30 - Customizing Sentry event processing pipeline 9:00 - Logback integration 11:20 - Assigning issues to releases automatically 12:17 - Outro - Sentry: sentry.io/ - Sentry Java SDK: github.com/getsentry/sentry-java - Sentry Spring Boot Integra...
🍃 How to log SQL queries in Spring Boot?
Просмотров 6 тыс.3 года назад
Two ways to log SQL statements in Spring Boot application 0:15 - Using built-in logging groups 2:48 - Using Datasource Proxy library Check sample project here: github.com/spring-academy/spring-samples/tree/master/logging-sql-datasource-proxy Other useful links: - github.com/ttddyy/datasource-proxy - github.com/gavlyukovskiy/spring-boot-data-source-decorator ⭐️ Follow me on twitter m...
⚡️ How to enable Spring profile on ALL integration tests
Просмотров 4,1 тыс.3 года назад
Quick tip on how to activate Spring profile on integration tests without repeating yourself all the time. Solutions for both Maven and Gradle. I messed up a bit positioning on my video circle when showing Gradle so here is the snippet that has to be added to build.gradle: test { systemProperty "spring.profiles.active", "test" } ⭐️ Follow me on twitter maciejwalkowiak In my channel I...
🍃 Spring Boot - Building RESTful Web Service 🚀 - Tutorial for Beginners
Просмотров 40 тыс.3 года назад
Beginner friendly tutorial on how to build first Spring Boot application exposing a RESTful endpoint. We are following together an official Spring guide spring.io/guides/gs/rest-service/ with an explanation what certain technologies and annotations do. 0:00 - Introduction 0:27 - Spring Initializr - start.spring.io 8:53 - Explanation of generated files 11:35 - Creating resource representation cl...
🍃 Spring Boot & AWS RDS with Spring Cloud AWS
Просмотров 13 тыс.4 года назад
Wow this video got quite long! It cover lots of things and you'll find it especially valuable if you are new to AWS RDS or if you have never used Spring Cloud AWS to connect to RDS. Follow me on twitter for more tips, links, articles and just random thoughts about Spring and Java maciejwalkowiak 😉 0:00 What this video is about? 0:53 What is AWS RDS? 2:27 How to create PostgreSQL ins...
Getting started with Spring Cloud AWS
Просмотров 11 тыс.4 года назад
AWS CLI installation: docs.aws.amazon.com/cli/latest/userguide/cli-chap-install.html Source Code: github.com/spring-academy/spring-samples/tree/master/spring-cloud-aws-getting-started ...aaaand follow me on twitter maciejwalkowiak 😉
Database password rotation with AWS Secrets Manager and Spring Boot
Просмотров 28 тыс.5 лет назад
Depending on how serious you are about security you may want to consider setting up password rotation for databases. If you're on AWS - they've got you covered! AWS Secrets Manager comes with support for automatic password rotation for RDS (and other database services). In this video I am showing how to set up RDS instance, how to set up password rotation for it using AWS Secrets Manager and ho...
Setting up AWS v2 with Spring Boot and Localstack
Просмотров 21 тыс.5 лет назад
How to set up new AWS SDK with Spring Boot? This video shows not only how use AWS SDK but also how to use Localstack and TestContainers to write integration tests that do not touch real AWS environment. In my channel I discuss things I believe are relevant to either Java & Spring beginners, or advanced developers who want to stay up to date. Feedback is very much welcome! and shhhh follow me on...
⚡ Spring Boot @ConfigurationProperties Tips & Tricks
Просмотров 30 тыс.5 лет назад
Video explaining how to validate @ConfigurationProperties annotated classes, how to get nice autocompletion in the IDE and how to reuse existing configuration properties classes multiple times. For validating @ConfigurationProperties with Kotlin check maciejwalkowiak.com/validating-configuration-properties/ In my channel I discuss things I believe are relevant to either Java & Spring beginners,...
⏰ Spring Boot @Scheduled Crash Course
Просмотров 60 тыс.5 лет назад
For testing cron expressions check crontab.guru/ and shhhh follow me on twitter maciejwalkowiak 😎 In my channel I discuss things I believe are relevant to either Java & Spring beginners, or advanced developers who want to stay up to date. Feedback is very much welcome!
Running Spring Boot Application on Heroku
Просмотров 66 тыс.5 лет назад
Once you finished watching check out these links: - www.heroku.com/ - www.heroku.com/pricing 💰 and shhhh follow me on twitter maciejwalkowiak 😎 Other PaaS solutions worth checking out: - run.pivotal.io/ 🍃 - cloud.google.com/appengine/ - aws.amazon.com/elasticbeanstalk/ - .. I bet Azure has also an equivalent but I haven't used it 🤷‍♂️ In my channel I discuss things I believe are rel...
Spring Data JDBC - Repositories
Просмотров 6 тыс.5 лет назад
Spring Data JDBC - Repositories
Spring Data JDBC - Many to Many Relationships
Просмотров 17 тыс.5 лет назад
Spring Data JDBC - Many to Many Relationships
Developing reactive application with Spring WebFlux and Spring Data Redis - Part 2 of 2
Просмотров 9 тыс.5 лет назад
Developing reactive application with Spring WebFlux and Spring Data Redis - Part 2 of 2
Developing reactive application with Spring WebFlux and Spring Data Redis - Part 1 of 2
Просмотров 16 тыс.5 лет назад
Developing reactive application with Spring WebFlux and Spring Data Redis - Part 1 of 2
How to setup Spring Boot 2 with JUnit 5
Просмотров 3,9 тыс.5 лет назад
How to setup Spring Boot 2 with JUnit 5
Introduction to AWS SDK v2 for Java
Просмотров 8 тыс.5 лет назад
Introduction to AWS SDK v2 for Java
Spring Data JDBC - One to One & One to Many Relationships
Просмотров 21 тыс.5 лет назад
Spring Data JDBC - One to One & One to Many Relationships
Best way to use multiple Java versions | Q&A
Просмотров 8 тыс.5 лет назад
Best way to use multiple Java versions | Q&A
Introduction to Spring Data JDBC
Просмотров 24 тыс.5 лет назад
Introduction to Spring Data JDBC
What's new in Spring Boot 2.1
Просмотров 4,8 тыс.5 лет назад
What's new in Spring Boot 2.1

Комментарии

  • @Java_React_fullstack
    @Java_React_fullstack 14 дней назад

    ruclips.net/video/OxWIaGy6Ovw/видео.htmlsi=3qZqukMzOZZo7hfQ

  • @Nico-ly7lh
    @Nico-ly7lh Месяц назад

    How could i set it up to set the base url and auth at runtime?

  • @Parthp1045
    @Parthp1045 Месяц назад

    Any one know how to do in python using fast api?

  • @Saso-me3ow
    @Saso-me3ow Месяц назад

    Love It, where is the next part?

  • @DominikEnder
    @DominikEnder 2 месяца назад

    You should provide at least a Github Repository, specially when dont show the AuthorRepository

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

    awesome. well explained in details. thanks a lot

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

    Was the Follow-up video with Query DSL ever posted?

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

    In local env like compose or local network read replicas downgrades perfomance, so with single db perfomance is higer so i make spring app with two datasources for reads and writes i tried up to 12 instances of app and 12 instances of postgres, and tried different configs 12X12 one replica per instance, ot 1X4 and other, but no perfomance improvement used haproxy and pgpool for load balancing and RW segregation still single DB perfoms faster in common LAN or compose

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

    based

  • @rabinneupane5906
    @rabinneupane5906 5 месяцев назад

    How to make 1 book with multiple authors?

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

    thanks, you make very easy !

  • @caiosuzuki4082
    @caiosuzuki4082 5 месяцев назад

    I am trying to setup Sentry in a application that is using spring boot on version 2.2.2, according to the documentation, it should work just fine after version 2.1.0. But I can't make sentry work as easily as you did in the video, I had to manually use Sentry.captureException() on my exceptions so they could be sent to my sentry dashboard. Also, even using the sentry.traces-sample-rate property, I can't make my transaction be logged in the Performance dashboard of sentry, could you give me some insight on what I should look for/try out to set this up correctly?

  • @GreggTannerAlan
    @GreggTannerAlan 5 месяцев назад

    cool video)

  • @erickjhormanromero6905
    @erickjhormanromero6905 5 месяцев назад

    Thanks and where's the repo?

  • @user-rx1mn6it2x
    @user-rx1mn6it2x 5 месяцев назад

    What if need to use auth

  • @junior_java_dev
    @junior_java_dev 5 месяцев назад

    dzięki wielkie za materiał, tego właśnie szukałem!!!

  • @alishahzad382
    @alishahzad382 5 месяцев назад

    Still waiting for the query DSL video to understand this concept completely. Hope you put it out soon.

  • @lighninggamerz6571
    @lighninggamerz6571 5 месяцев назад

    great explanation Maciej ..One thing I would like to know is using aws-secretsmanager-jdbc library if the application is using old password and now if secrets rotation happens how application works without restarting it ? I mean how application establishes the connection with new password without restarting ?

  • @Joseph-oz7tx
    @Joseph-oz7tx 6 месяцев назад

    very a useful video, Maciej

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

    I don't find it easy to test with mockrestserviceserver: there is a method bindTo to bind the builder to the server, but if you declare as a bean the restclient then you have to mock it too. On the other hand, if you declare as a bean a second builder with some customization, you have to build the restclient for every request

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

    Congratulations! Great content 👏

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

    Terrific content. I was looking for Graphql and spring simple demo and this was by far the best one, thank you for sharing this

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

    Thank you so much for your content

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

    Great Video! Just a query for my use case, if I am using secrets manager for db credential how can I make connection for read and write replica using the aws-cloud-sdk dependency because I will not be able to add the details in properties file, Can we acheive this using config or bean?

  • @user-bv5uo7kn2u
    @user-bv5uo7kn2u 7 месяцев назад

    Please provide the code

  • @user-bv5uo7kn2u
    @user-bv5uo7kn2u 7 месяцев назад

    Wow

  • @user-gw6df6ns7e
    @user-gw6df6ns7e 7 месяцев назад

    Good explanation thanks.

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

    Hello, Can you please share your example repo (spring-boot-secrets-manager-jdbc-demo) with us ? Thank you for gr8 session

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

    it is a pitty that we need to create a bean TodoClient manually instaead using an annotation on the top of interface, like @FeignClient(url="some.base.url")

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

    this is not going to work with real project

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

    this video is 3 year ago but still it worth !!!

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

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

  • @rockonragna
    @rockonragna 8 месяцев назад

    How to configure RestClient with OAuth2 and call protected endpoints

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

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

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

    TKS BRO AMAZING

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

    You explain very well the topics, could you please make more tutorials. thank you

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

    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 ?

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

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

  • @user-jb8we4ly1s
    @user-jb8we4ly1s 11 месяцев назад

    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?

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

    More like a feign set with fixed lookup

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

    Where is the next video, Man?

  • @kyu-myonlee265
    @kyu-myonlee265 Год назад

    I really love this! did you create the following video? Please let me know cuz I couldn't find it in the list!

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

    I subscribed❤

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

    nice

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

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

    Nice, using the interfaces will make things much cleaner.

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

    When are you going to upload next part of this video? I am waiting.

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

    what about FeignClient is it stil good

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

    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!

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

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

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