Showing Post From Java

Jackson From First Principles: What ObjectMapper Does, What It Doesn’t, and When to Write a Custom Serializer

I’ve used ObjectMapper for years without really understanding what it does for free, what it refuses to do, and when you actually need to step in with a custom serializer.

Read more

save, saveAndFlush, and REQUIRES_NEW: The Hibernate Questions Hiding in One Spring Service Method

Last week I was reading a teammate’s PR and stopped on a method that made me realise something: I’d been using save, flush, commit, and REQUIRES_NEW correctly for years — and if a junior had asked me to explain precisely what each one does and when, my answer would have been thinner than my code. Using a tool and being able to teach it are different skills, and the gap only shows when someone asks.

Read more

Javadoc Best Practices for Spring Boot - 5-Minute Professional Guide 2025

You’ve written clean code. Your tests pass. Your PR is ready. Then comes the review comment: “Please add Javadoc.”

Sound familiar?

Most developers know they should document their code, but Javadoc often feels like an afterthought—time-consuming, repetitive, and unclear about what actually matters.

Read more

Spring Boot Testing Strategy – Ultimate Cheatsheet 2025 (Part 1)

Most Spring Boot testing articles bury you in theory. This one is built for action: a battle-tested reference you can keep open while coding.

Read more