Spring Boot
Supported versions with API versioning using the Spring framework
When enabling API versioning using Spring Framework 7 or later, in addition to defining the default version for endpoints that do not have a version defined, you can also define a list of versions supported by your API by using the addSupportedVersions() method when configuring… Read More
API Versioning using path parameter with Spring framework
In the previous tutorial, I showed you how to enable API Versioning for the request header in a Spring application. In this tutorial, we will continue to learn how to enable API Versioning for the path parameter! I will also create a new Spring Boot… Read More
API Versioning using request headers with Spring framework
API Versioning is a new feature of Spring supported since version 7, which helps us easily add a version for RESTful APIs in the request header, in the path parameter, in the media type parameter, in the query parameter, or a custom version resolver. In… Read More
Docker Compose support in Spring Boot applications
We often use Docker Compose to run multiple applications with the database or with other services that the application is using, at the same time, using multiple Docker containers. From version 3.1 onwards, Spring Boot also supports Docker Compose, making it much easier to develop… Read More
Working with Apache Kafka using Spring Boot
In the previous tutorials Manage Apache Kafka using KafkaAdmin class of Spring for Apache Kafka and Send messages to Apache Kafka using the KafkaTemplate class of Spring for Apache Kafka, I have guided you on how to work with Apache Kafka using Spring’s Spring for Apache… Read More
Timeout Pattern with Resilience4j TimeLimiter library in Spring Boot application
In the previous tutorial, I showed you how to implement the Timeout Pattern with the Resilience4j TimeLimiter library. For Spring Boot applications, there is currently no official Spring Boot starter supporting the Resilience4j library, but there is a starter of the Resilience4j library supporting this,… Read More
gRPC server with Spring Boot using grpc-server-spring-boot-starter
There is currently no official starter supporting gRPC in Spring Boot, but you can also use the starters developed by the community in the GitHub repository https://github.com/grpc-ecosystem/grpc-spring. In this tutorial, I will guide you on how to build a gRPC server with Spring Boot using… Read More
Multiple Datasources in Spring Boot application
For Spring Boot applications that only work with one database, you can refer to the article Configure database in Spring Boot project using JPA Starter dependency to know how to configure the database for the application. In reality, sometimes we will work with applications that… Read More
@ConditionalOnBean annotation in Spring Boot
I introduced to you the @Conditional annotation in Spring with the purpose of allowing us to define conditions for a bean to be initialized in the Spring container. We will need to implement the Condition interface with the abstract method matches() returning true or false… Read More

