Home » Spring Boot

Tag Archives: Spring Boot

Spring Boot tests with Testcontainers and PostgreSQL, MySQL or MariaDB

Testcontainers is a Java library that allows integrating Docker containers in JUnit tests with ease. In a Containerized World, there is little sense to complicate the tests configuration with embedded databases and services. Instead, use run your services in Docker and let the Testcontainers manage this for you. In this blog post you will learn how to configure Testcontainers to ...

Read More »

Docker Compose for Spring Boot application with PostgreSQL

In this blog post you will learn how to configure Spring Boot application with PostgreSQL for running with Docker Compose. This blog post covers: Spring Boot application Dockerfile configuration with clean separation between dependencies and resourcesDocker Compose configuration for running the application with PostgreSQL Prerequisites DockerJava 13Terminalhttpie (or curl) Application Generate the Maven based Spring Boot application with Spring Web, ...

Read More »

Creating an API Gateway with Zuul and Spring Boot

spring-interview-questions-answers

Introduction When working with micro services it is common to have unified access-point to your system (also called API Gateway). Consumers only talk with the API Gateway and not with the services directly. This hides the fact that your system is composed out of multiple smaller services. The API Gateway also helps solving common challenges like authentication, managing cross-origin resource ...

Read More »

Spring WebClient and Java date-time fields

WebClient is Spring Framework‘s reactive client for making service to service calls. WebClient has become a go to utility for me, however I unexpectedly encountered an issue recently in the way it handles Java 8 time fields that tripped me up and this post goes into the details. Happy Path First the happy path. When using a WebClient, Spring Boot ...

Read More »

Advanced profile management in Spring Boot

spring-interview-questions-answers

We all are aware of profile management in Spring Boot and the flexibility it provides in configuring our applications for different environments. The other powerful aspect of this is that at any given time we can have multiple active profiles. The advantage this gives is that we can mix the deployment environment profile along with business use case related profiles. ...

Read More »