DAO == Data access object. This is one way to record a save layer.
Spring can manage DAO beans and many other types, such as message-driven beans, services, web controllers, and anything else that you can encapsulate in a bean.
Spring has three parts:
- Inversion of Management (IOC). Think of Spring as a big factory for creating and managing beans.
- Aspect Oriented Programming (AOP). This is how Spring manages end-to-end issues like logging, transactions, proxying, remote access, and other activities that would otherwise be cluttered throughout the application.
- Framework code, such as persistence templates for JDBC, Hibernate, TopLink, etc .; Remoting Web MVC etc. They write better code than us, you can just use it.
source share