
JUnit Test Instance Lifecycle and Shared State Explained
How JUnit creates a new test instance per method by default, when PER_CLASS changes it and what that means for shared state and parallel runs.
Everything you need to level up your coding skills.

How JUnit creates a new test instance per method by default, when PER_CLASS changes it and what that means for shared state and parallel runs.

Stop only where it matters with conditional breakpoints, hit counts and logpoints that print values without pausing, and avoid their performance traps.

Upgrade Struts 2.5 to 6 and then 7: raise the Java baseline, clean up deprecated APIs and OGNL limits, and move to the Jakarta namespace.

Compare Play Framework and Spring Boot for reactive APIs: programming model, async support, ecosystem, tooling, hot reload and when each is the better choice.

Migrate Micronaut 3 to 4: move to Java 17, rename javax to jakarta, update the parent and plugins, fix removed APIs, test and check native builds.

Read the maven-compiler-plugin failure to its real cause: a JRE instead of a JDK, a release the JDK lacks, annotation processing or a real compile error.

Use Hibernate statistics and slow query logging to find costly queries: enable generate_statistics, read counters, set a threshold and expose metrics.

Fix java.lang.StackOverflowError by finding the missing base case or the hidden cycle, then convert deep recursion to a loop or raise the thread stack size.

Generate a Java client or server interfaces from an OpenAPI spec with OpenAPI Generator in Maven and Gradle, and keep generated code out of git.

Use the Spring Boot conditions evaluation report and the Actuator conditions endpoint to find out why an auto configuration did or did not apply.

Learn what BeanFactory and ApplicationContext each provide in Spring, what the context adds, and why application code almost always uses the context.

Compare an anemic domain model with a rich one in Java: where the rules live, an order example in both styles, tests, persistence and a practical way to move.
We send one email when a new post is published. No spam.