Spring Architecture

    0 Votes

Spring maintains a Modular architecture. The benefits of Modular architecture is that you can take those modules which are applicable for your project. To be precise, Spring comes with jars and jars packaged with module like JMS module, ORM module, WEB module, AOP module etc..

So If your project only needs JMS, JDBC and Spring core you can only add those jars in your classpath. Later if you want to use ORM module just add those ORM specific jars and you are ready to use ORM framework. Very easy isn’t it?

Spring Architecture Diagram

Spring Architecture Diagram

Core Container

Core container consists of following modules.

Core Module

Spring core module provides the basic feature of Spring that is IOC and Dependency injection.


Bean factory is the most basic container. Bean factory container manages the life cycle of Spring beans, wiring between them and communication with each other. In BeanFactory, simple POJO gets transformed to Spring Beans. In one word, POJO got Spring-ness. BeanFactory maintains the factory pattern.


ApplicationContext is build on top of the BeanFactory. It is a bit advanced container than BeanFactory. It supports some extra features like event handling, locale handling etc.


Spring expression language is used for working on Spring beans.


AOP module supports Aspect Oriented Programming by which developer can segregate cross-cutting concerns like (Logging, transaction) from business logic


Aspect module provides supports to use AspectJ which is a very powerful Aspect orient programming language.


This module uses STOMP protocol. STOMP is the Simple (or Streaming) Text Orientated Messaging Protocol. STOMP provides an interoperable wire format so that STOMP clients can communicate with any STOMP message broker to provide easy and widespread messaging interoperability among many languages, platforms and brokers.

Data Access/Integration

Data Access/Integration consists of following modules.


Spring provides a JDBC template which hides boilerplate code. By using this module, working on JDBC is very easy.


Spring provides templates for popular ORM framework like Hibernate, ibatis etc.


Spring provides template for popular Object/XML mapping framework like JAXB,XML Beans,Castor etc.

Transaction: Spring provides support for Programmatic and declarative transaction. Using Spring AOP, it provides declarative transaction.


Web layer produce support for the portlet, servlet and WebSocket programming. Using Spring MVC we can develop an MVC project.

Popular Videos


How to improve your Interview, Salary Negotiation, Communication & Presentation Skills.

Got a tip or Question?
Let us know

Related Articles

Spring Framework - Overview
Step by step guide for Spring configuration
Building First Spring application
Spring Bean XML File
Spring Container
Spring Bean - Learn with an Example
Spring Bean Scope
Spring Bean Life Cycle
Spring Bean Post Processor
Spring Inner Bean
Spring Autowiring
Spring Autowiring Types
Spring Qualifier with Autowiring
Spring Collection Injection
Spring Inheritance
Spring Event Handling
Dependency Injection
Spring AOP
Spring AOP Example