
How Spring Boot Auto Configuration Works Under the Hood
See how Spring Boot auto configuration is discovered, which conditions decide whether a configuration applies, and why your own beans always win.
Tag
99 posts

See how Spring Boot auto configuration is discovered, which conditions decide whether a configuration applies, and why your own beans always win.

Compare the repository pattern with Spring Data repositories: what each is for, when a domain interface over Spring Data helps and when it adds nothing.

Learn Jakarta Data 1.0: repository interfaces, CrudRepository, Find and Query annotations, pagination and how it compares with Spring Data.

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.

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.

Understand Jakarta Security: HttpAuthenticationMechanism, IdentityStore, form and OpenID Connect login, role checks with RolesAllowed and the SecurityContext.

Follow a Spring bean through definition, instantiation, injection, initialization callbacks, use and destruction, with the order of each hook shown in code.

Learn Jakarta REST (JAX-RS): resource classes, path and parameter annotations, content negotiation, providers, exception mappers, filters and the client API.

Compare microservices and a monolith by team size, deployment, data and operations, and see why a modular monolith is the right starting point for most.

Understand Spring bean scopes: singleton, prototype, request, session and application, how each behaves, and the thread safety traps of the default.

Understand how ThreadLocal leaks memory in thread pools and web apps, how to clean up with remove, and when ScopedValue or explicit parameters are better.