Site icon DataFlair

Spring Framework Architecture | 4 Modules of Spring Architecture

FREE Online Courses: Elevate Your Skills, Zero Cost Attached - Enroll Now!

1. Objective

In our previous article, you got the brief understanding of what is Spring Framework. Now in this article, you will see Spring Framework architecture. Also, you will learn about the various modules in Spring Architecture.

So, let’s begin Spring Framework Architecture.

Spring Framework Architecture | 4 Modules of Spring Architecture

2. Spring Framework Architecture

The basic idea behind the development of Spring Framework was to make it a one-stop shop where you can integrate and use the modules according to the need of your application. This modularity of Spring is due to the architecture of Spring. There are about 20 modules in the  Spring framework which are being used according to the nature of the application.

Do you know What is Spring IoC Containers?

Below is the architecture diagram of the Spring Framework. There you can see all the modules are being defined over the top of Core container. This layered architecture contains all the necessary module that a developer may require in developing the enterprise application. Also, the developer is free to choose or discard any module that is of need or are not of any use according to its requirement. Due to its modular architecture, the integration of Spring Framework with other frameworks can easily do without much problem.

3. Modules of Spring Architecture

The Spring Framework Architecture contains 4 main modules namely: –

4 Modules of Spring Architecture with Diagram

a. Core Container

The Core Container in Spring Architecture contains the Core, Beans, Context, Expression Language.

Technology is evolving rapidly!
Stay updated with DataFlair on WhatsApp!!

Follow this link to know Spring Expression Language Operators and Variables (SpEL)

b. Data Access/Integration

In this part of Spring Architecture, we are going to discuss OXM, JMS, ORM, Transaction Modules, and JDBC.

c. The Web Container

The Web module in Java Spring contains several frameworks, use to ease the task of developing the web related applications. Various popular MVC frameworks like JSF, Struts etc can integrate with the Web module. The Web layer has various modules such as Web, Web-MVC, Web-Socket, and Web-Portlet which are as follows: –

DO you know What is the Spring JDBC Framework?

d. Miscellaneous

There are several important modules along with AOP, Aspects Instrumentation, Messaging, and Test.

So, this was all about Spring Framework Architecture. Hope you like our explanation.

4. Conclusion

Hence, in this Spring Architecture Tutorial, we discussed, what is Spring Framework Architecture and the modules used in Spring Framework Architecture. Furthermore, if you have a query, feel free to ask in the comment box.

Related Topic – Spring Bean Scope

For reference

Exit mobile version