Copyright
Brief Table of Contents
Table of Contents
Preface
Acknowledgments
About Spring
About this Book
About the Cover Illustration
Chapter 1. Introducing Spring: the dependency injection container
1.1. What is Spring, and why use it?
1.1.1. The major pieces of the framework
1.1.2. Why use it?
1.2. Flexible configuration via dependency injection
1.2.1. Configuring dependencies the old way
1.2.2. Dependency injection
1.2.3. Inversion of control
1.3. A simple bean configuration example
1.3.1. Creating the account domain object
1.3.2. Creating the account DAO interface and implementation
1.3.3. Configuring CsvAccountDao with Spring
1.3.4. Creating the account service that finds delinquent accounts
1.3.5. Wiring up the AccountService to CsvAccountDao
1.4. Wiring beans using XML
1.4.1. An overview of the beans namespace
1.4.2. Bean scopes
1.4.3. The p namespace
1.4.4. The c namespace
1.5. Autowiring and component scanning using annotations
1.5.1. @Autowired
1.5.2. Stereotype annotations
1.5.3. Component scanning
1.5.4. XML vs. annotations: which is better?
1.6. Summary
Chapter 2. Data persistence, ORM, and transactions
2.1. Data access using JDBC
Prerequisites
Key technologies
Background
Problem
Solution
Discussion
2.2. Looking up a DataSource with JNDI