Spring Boot Developer

From the IoC container to production-ready Spring Boot services.

Examples use Spring Boot 4.1 on Java 21. Version-specific behaviour is labelled and linked to the official Spring documentation.

  1. Dependency injection

    The idea behind the whole framework, shown first in plain Java and then with Spring.

  2. The ApplicationContext, bean lifecycle and scopes

    What the container creates, when, and for how long.

    Also: Bean lifecycle & scopes

  3. AOP and proxies

    How @Transactional, @Cacheable and security annotations actually work — and the self-invocation pitfall.

    Also: Application events, SpEL

  4. Spring MVC and REST controllers

    Request handling, validation, error responses and DTOs.

    Also: REST design & error handling, WebFlux & Reactor

  5. A complete service with ports and adapters

    Controllers, validation, Problem Details, JPA and tests in one runnable example.

  6. Spring Data JPA and Hibernate

    Entity lifecycle, relationships, lazy loading and the N+1 problem.

    Also: Mappings & fetching, JPQL & Criteria API

  7. Transactions, propagation and isolation

    Where transactions start and end, and what each isolation level prevents.

    Also: Auditing & migrations, Caching & Redis

  8. Spring Security

    The filter chain, password storage, OAuth 2.0 and JWT validation.

    Also: OAuth2, OIDC & JWT, Method-level security

  9. Testing: slices, full context and Testcontainers

    Choosing the cheapest test that proves each behaviour.

    Also: Unit testing (JUnit, Mockito)