
How to Use jlink to Build a Slim Java Runtime in Docker
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.
Everything you need to level up your coding skills.

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.

Fix the PostgreSQL JDBC connection refused error by checking that the server runs and listens, the host and port are right, and Docker networking is correct.

Java generics explained: type parameters, generic methods, bounds, type erasure, invariance and wildcards, with examples and the limits erasure imposes.

Fix Jackson's Cannot construct instance error by giving the class a creator Jackson can call, using a record, or choosing a concrete type for interfaces.

Build a small REST API with Spring Boot 4 and JDK 25: generate the project, write a controller, add an in memory service, validate input and run the tests.

Spring transaction management explained: the Transactional annotation, the proxy and manager, propagation, rollback rules and common pitfalls.

Structure a Spring Boot application with ports and adapters so the domain has no framework imports, with an order example, package layout and tests.

Migrate WebSecurityConfigurerAdapter to SecurityFilterChain, WebSecurityCustomizer and AuthenticationManager beans, with before and after code and pitfalls.

Reproduce lost updates and check then act races in Java, learn the patterns that signal a race, fix them with atomics and locks and test for them under load.

Move a Java EE 8 application to Jakarta EE 10: pick a server, rename javax to jakarta, update libraries, fix descriptors, test and roll out.

Use Mockito spy to stub part of a real object, learn the doReturn syntax, and see why a spy often signals a class that should be split instead.

Find slow endpoints in a Java service with Micrometer timers, percentile histograms, distributed tracing and slow query logs.
We send one email when a new post is published. No spam.