Skip to main content
Java & backend development · 18 chapters · 54 sections

Spring Framework guide

Learn how Spring creates objects, connects dependencies, accesses data, and handles web requests. Read the complete chapter text and code from Spring Framework Notes for Professionals, with corrections and version notes alongside the original material.

Explore all chapters

  1. Chapter 01Getting Started

    Set up an XML or Java application context, declare beans, inject dependencies, and understand lifecycle callbacks.

  2. Chapter 02Core and Dependency Management

    Understand dependencies, loose coupling, interfaces, and the role of the Spring IoC container.

  3. Chapter 03Expression Language (SpEL)

    Read expression syntax for literals, collections, maps, and method calls in Spring configuration.

  4. Chapter 04SimpleJdbcCall and SqlRowSet

    Call stored procedures with cursor outputs and understand the Oracle-specific row-set examples.

  5. Chapter 05Creating and Wiring Beans

    Explore component scanning, qualifiers, generic injection, FactoryBean, and prototype dependencies.

  6. Chapter 06Bean Scopes

    Compare singleton, prototype, request, session, application, and WebSocket bean lifetimes.

  7. Chapter 07Conditional Bean Registration

    Register beans conditionally using properties, classes, resources, and application context information.

  8. Chapter 08Bean Validation

    Validate nested objects, customize validation messages, and understand class-level constraints.

  9. Chapter 09ApplicationContext Configuration

    Bootstrap an application context and compare annotation-based, Java, and XML bean definitions.

  10. Chapter 10RestTemplate HTTP Requests

    Study legacy HTTP requests, streaming downloads, headers, generic response types, and authentication.

  11. Chapter 11Task Execution and Scheduling

    Enable scheduling and compare cron expressions, time zones, fixed delays, and fixed rates.

  12. Chapter 12Lazy Initialization

    Delay bean creation with XML or annotations and understand eager dependency resolution.

  13. Chapter 13Property Sources

    Load properties from configuration files and inject values into Spring-managed beans.

  14. Chapter 14Dependency Injection and IoC

    Compare constructor, setter, field, optional, Java-configured, and XML-configured injection.

  15. Chapter 15JdbcTemplate Queries and Batches

    Use scalar queries, row mapping, row sets, batch operations, and named SQL parameters.

  16. Chapter 16SOAP Web Service Consumption

    Understand SOAP client transport configuration and the source book’s Basic authentication example.

  17. Chapter 17Profiles and Environments

    Select environment-specific configuration and activate profiles in applications and tests.

  18. Chapter 18DispatcherServlet and Spring MVC

    Understand the MVC front controller, servlet mappings, controller scanning, and JSP view resolution.

Common questions

What does this Spring Framework guide cover?

All 18 chapters and 54 numbered sections from the source book: setup, Spring Core, SpEL, stored procedures, beans, scopes, conditions, validation, application contexts, HTTP clients, scheduling, lazy initialization, properties, dependency injection, JDBC, SOAP, profiles, and Spring MVC.

Are the examples compatible with current Spring versions?

The source book documents older Spring versions. Each chapter separates original examples from editorial corrections and version notes. Check the linked official documentation before using a recipe in a current application.

Is Spring Framework the same as Spring Boot?

Spring Framework supplies the core container, dependency injection, web, and data-access infrastructure. Spring Boot builds on it with auto-configuration and application setup conventions. The guide identifies Boot-specific annotations where the source mixes the two.

Contributors and credits

Original Stack Overflow Documentation contributors, as credited in the source book.

Buy me a coffee
Daily Practice
0/0