Chapter 3. DAO and JDBC in Spring

In the previous chapter, you explored the concept of Inversion of Control (IoC). We then explored concepts such as, Spring Core Container, BeanFactory, and ApplicationContext, and then you learned how to implement them. We looked at Dependency Injection (DI) in Spring and their types: setter and constructor. We also wired beans using setter- and constructor-based Dependency Injection for the different data types.

In this chapter, we will cover the Data Access Object (DAO) design pattern. We will look at the simplified spring JDBC abstraction framework. We will implement the JDBC code using the Spring JDBC support and discuss how Spring manages DataSource that you can use in your applications. We will discuss ...

Get Spring: Developing Java Applications for the Enterprise now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.