An example Spring Boot app that I created to show how to use RestTemplate
and WebClient
. This is a repository for my blog post "Spring Boot + Kotlin Rest client cheatsheet: RestTemplate and Webclient".
This is a quote from the post:
...As a consequence of the fact that we live in the "Microservices era", one of the most common operation that I do in my code is consume a REST api of one microservice from another one. How can you do that in a Spring Boot application? There are to main component that we can use: RestTemplate and WebClient. Let's see how they works by developing a small Spring Boot application that call an external service and will return the result of this call through an endpoint...
Click on the link above to read the posts.
- launch start-server.sh
- launch the Spring Boot application