Spring Boot Based Online Shopping Web Application


Download 1.69 Mb.
Pdf ko'rish
bet5/10
Sana10.02.2023
Hajmi1.69 Mb.
#1185447
1   2   3   4   5   6   7   8   9   10
Bog'liq
WeiTianyu Project2022

1.3 Features and Advantages 
Spring framework comprises many modules such as the core container, Spring context, Spring 
AOP, Spring DAO, Spring ORM, Spring Web Module, Spring MVC framework as shown below in 
figure 3. The most important features are the Inversion of Control (IOC), Aspect oriented programming 
(AOP), and the Spring MVC design pattern. In this project, we will focus on Inversion of Control and 
Spring MVC, and also introduce how to configure Spring configuration files and JDBC, and some 



other features [3]. 
Figure 3 Architecture of Spring Framework 
1.4 IOC and AOP 
Inversion of Control: it means that giving control of creating and instantiating the Spring beans 
(objects) to the Spring IOC container and the only work that developers do is configuring the beans in 
the spring.xml file. Spring IOC container is at the core of the Spring framework and container will help 
developers create objects, wire objects together, configure them, manage their complete life cycle from 
creation till destruction. IOC container managers one or more beans(objects) in the form of XML. 
Spring.xml is a list of classes that are under the control of the Spring IOC container. As we see in 
Figure 4 Spring.xml file, many beans are configured in the spring.xml file and the Spring IOC 
container will manage those classes and perform actions such as creation, maintenance, destruction 
throughout the whole life cycle. 
Figure 4 Spring.xml file 



Starting with Spring 2.5, the framework introduced annotations-driven Dependency Injection. The 
main annotation of this feature is @Autowired. It allows Spring to resolve and inject collaborating 
beans into our bean. Aspect oriented Programming: With the help of AOP the various concerns present 
in a system can be separated easily. In spring aspects are joined together with the help of spring.xml 
and coding is well modularized. [4] 
Figure 5 Autowired annotation 




Download 1.69 Mb.

Do'stlaringiz bilan baham:
1   2   3   4   5   6   7   8   9   10




Ma'lumotlar bazasi mualliflik huquqi bilan himoyalangan ©fayllar.org 2024
ma'muriyatiga murojaat qiling