SpringMVC, Spring and Mybatis technology selection

Spring is a non-invasive framework that provides a lightweight IOC (Iversion of Control) container and AOP (Aspect Oriented Programming, aspect-oriented programming) concept implementation method,
provides support for the persistence layer things, for the existing The framework provides an integrated solution.

.SpringMVC The
SpringMVC framework is an implementation of Spring for building Web applications based on the MVC design model. In the process of web application development, the Spring MVC framework accommodates a large number of view technologies including JSP, which can be flexibly configured.
The MVC pattern divides the application (input logic, business logic and UI logic) into different aspects, while providing loose coupling between these elements. Model (model) encapsulates the data of the application and the PO-JO composed of them. View (view) is responsible for rendering the model data to the view and presenting the data to the user in a certain form. Controller (controller) is responsible for processing user requests, and establishing an appropriate model to pass it to the view rendering. The focus of Spring MVC lies in its process and some important annotations, including controllers, view resolvers, views and other important
MyBatis is an excellent persistence layer framework that supports custom SQL, stored procedures and advanced mapping. In the era of mobile Internet, MyBatis has become the first choice of Internet Java persistence framework. MyBatis and Hibernate eliminate SQL, and MyBatis does not block SQL. The advantage of not shielding SQL is that programmers can customize SQL rules without Hibernate automatically generating rules, which can define SQL more accurately, thereby optimizing performance, and it is more in line with the requirements of high concurrency, big data, high performance, and high response of the mobile Internet.
Integration of SSM framework
According to the research of each framework, the
backstage of this system adopts Spring MVC, Spring and Mybatis as the main back-end technologies to complete the design of this system. The structure diagram is shown in Figure 1.
Insert picture description here

Figure 1 Block diagram of SSM framework structure, in
which SpringIOC undertakes a resource management and integration, plug-in

Instant function. SpringAOP can provide aspect management, especially the function of database transaction management. SpringMVC is used to separate the model, view and controller into an organic and flexible system. MyBatis provides a persistence layer for database access, which can seamlessly connect with Spring. .

Guess you like

Origin blog.csdn.net/qq_42918433/article/details/113816843