Series
Spring Boot 4 for Working Java Developers
3 episodes, in order. The code builds on itself, so following from the start leaves you with a complete system rather than a pile of samples.
-
Spring Boot 4: What Actually Changed? (3.5 → 4.1) →
One real Spring Boot 3.5 orders service upgraded to 4.1, step by step, following Spring's own migration guide. Every change sorted into what breaks loudly, what breaks silently, and what you can now opt into, with the 3.5 and 4.1 code side by side.
-
One @Transactional Mistake Crippled My Spring Boot App: A Flash Sale, Measured →
A Spring Boot checkout calls the card provider inside one @Transactional method. Under a flash sale, checkout takes 24 seconds, a different product page takes 23.7 seconds, and the CPU sits mostly idle. A bigger connection pool changes nothing. Paying after the commit brings checkout to 106 ms. Every number measured, with the code, the thread dump, the Postgres lock waits and what the fix costs.
-
I Built a Spring Boot AI Agent That Pays for APIs: HTTP 402, MPP and MCP in Java →
A Spring Boot courier API answers HTTP 402 Payment Required. A hand-written Java client reads the challenge, pays five test cents on the Tempo test network and asks again with proof of payment. An AI assistant calls it over MCP. Then it breaks twice: it pays five dollars when the price changes, and pays twice when a paid response is lost. The fixes are a payment policy that refuses before anything is signed and a recovery workflow that never pays again. Every payment is a real testnet transaction you can open.