
How to Use Docker Compose Support in Spring Boot 4
Use Spring Boot Docker Compose support to start compose.yaml services automatically in development, wire connections and control lifecycle.
Everything you need to level up your coding skills.

Use Spring Boot Docker Compose support to start compose.yaml services automatically in development, wire connections and control lifecycle.

Build and test a Maven Java project on every push with GitHub Actions, using setup-java, a JDK matrix, test reports and a job that fails on broken tests.

Build a custom Java runtime with jlink that contains only the modules your app needs, and package it into a small Docker image with a multi-stage build.

Find slow endpoints in a Java service with Micrometer timers, percentile histograms, distributed tracing and slow query logs.

Package a Play application with sbt dist or a Docker image, set the secret key and allowed hosts, and run it behind a reverse proxy in production.

Upgrade a Vaadin application across a major version: baselines first, then the Vaadin BOM, compile fixes, themes, the production bundle and rollback.

Use dependencyManagement and a bill of materials in Maven to align library versions: import scope, the Spring Boot BOM, overriding and writing your own BOM.

Create a Spring Boot project with Maven using Spring Initializr, curl or an IDE, and read the parent POM, starters and wrapper it generates.

Add JaCoCo to a Maven project to measure line and branch coverage from JUnit, produce HTML and XML reports, and enforce a minimum in the build.

Understand how sbt builds a Play Framework project: build.sbt, the Play plugin, key commands, dependencies, run and test tasks and multi project layouts.

Expose Micrometer metrics from a Spring Boot app, scrape them with Prometheus, build Grafana panels for JVM and HTTP health and add custom business metrics.

Create a Spring Boot Gradle project with Initializr, read the generated build file with the Spring Boot plugin and dependency management plugin, and run it.
We send one email when a new post is published. No spam.