Spring Framework
10 guides · about 1 hour of reading
The Spring Framework is the foundation under Spring Boot, Spring Data and most of the Java backend ecosystem. Understanding it directly — the container, bean lifecycle, proxies and transactions — is what turns Boot's auto-configuration from magic into something you can reason about and debug. This subject covers the core container and the modules most teams use every day, with code that runs on Spring Framework 6.
Who this is for
- Java developers starting with Spring
- Spring Boot users who want to understand the framework underneath
- Developers preparing for a Spring certification
Learning path
Read in order for a complete course, or pick the topic you need.
- 1Inversion of Control and Dependency Injection in SpringWhat the Spring container does, how constructor, setter and field injection differ, and how to wire beans with Java configuration and component scanning.Beginner8 min read
- 2Spring Bean Lifecycle, Scopes and Advanced ConfigurationThe phases every Spring bean goes through, the callbacks you can hook, what each scope guarantees, and profiles, properties and conditions that shape a context.Intermediate8 min read
- 3Aspect-Oriented Programming with Spring AOP and AspectJHow Spring AOP applies cross-cutting behaviour through proxies: aspects, pointcut expressions, advice types, JDK vs CGLIB proxies and the self-invocation trap.Intermediate8 min read
- 4Spring JDBC and Declarative TransactionsJdbcTemplate and JdbcClient for SQL without boilerplate, DataAccessException translation, and @Transactional in depth: propagation, isolation, rollback rules.Intermediate7 min read
- 5Integrating JPA and Hibernate with SpringConfigure EntityManagerFactory and JpaTransactionManager in Java config, use the shared EntityManager, and avoid lazy-loading, N+1 and Open Session in View.Intermediate7 min read
- 6Spring MVC: DispatcherServlet, Controllers, Forms and ViewsHow a request flows through DispatcherServlet, how to bootstrap Spring MVC without web.xml, and how controllers bind forms, validate input and render views.Intermediate6 min read
- 7Building REST APIs with Spring MVC @RestControllerJSON APIs with @RestController, ResponseEntity and Jackson; validation; RFC 9457 problem details from @RestControllerAdvice; calling services with RestClient.Intermediate5 min read
- 8Spring Security Basics: Filter Chain, Authentication and AuthorizationSpring Security 6 explained: the filter chain, SecurityFilterChain config, users and password encoding, URL and method authorization, CSRF and stateless APIs.Intermediate7 min read
- 9Declarative Caching with Spring's Cache AbstractionUse @Cacheable, @CachePut and @CacheEvict correctly: keys, conditions, cache managers from ConcurrentMap to Caffeine and Redis, expiry and consistency traps.Intermediate7 min read
- 10Testing Spring Applications: Unit Tests, TestContext and MockMvcTest Spring code at the right level: plain unit tests, cached contexts with SpringExtension, transactional rollback, @MockitoBean overrides and MockMvc.Intermediate6 min read
Continue with
Spring Boot & Spring CloudBuild, configure, document, test and deploy production-ready services with Spring Boot, Spring Data, Spring Batch and Spring Cloud.11 guides →Java ProgrammingFrom objects and collections to lambdas, streams, concurrency and design patterns — the core Java skills every backend developer relies on.13 guides →Java EE / Jakarta EEApplication servers, servlets, JSF, EJB, JMS, JPA, JTA, JAX-RS and XML processing — the enterprise Java platform and how its pieces fit together.10 guides →