Spring Architecture – An Introduction:
Spring is a lightweight framework used to build java applications. In this article let us see the Spring Architecture in detail.
There are seven modules in Spring,
- Application Context
- Web Context
This forms the base of Spring framework. All the other modules are built over Core module. This module contains Bean factory container which forms the basis to implement Dependency Injection.
Data Access Object – This module provides a standard way for data access. (Hibernate, JDBC etc..). Normally in an application to access the database we need to opening connection, perform the operation and close the connection. But in Spring DAO, We can overcome this issue’s because Spring takes care of opening and closing of database connections and all we have to do write code to perform the operations.
Object Relational Mapping – This helps us to integrate Spring framework with other Frameworks such as Hibernate, JDO etc.
Aspect Oriented Programming – Helps in implementing aspects within our application. Aspect Oriented Programming helps us to separate application logic from system level services.
Model View Controller – This module helps us to separate application logic from the view.
This module is built over Core Module. Application Context has all the concepts of Bean factory and in addition to those concepts application context has internalization of Messages, life cycle events and validation
Web Context is a part of web application which includes MVC module.
One thought on “Spring Architecture – An Introduction”
[…] We have already went through various examples using spring, To understand spring please refer here. […]