The difference between Spring and SpringMVC
Spring is a container framework for IOC and AOP, and SpringMVC is a Web framework added based on Spring functions. If you want to use SpringMVC, you must first rely on Spring.
To put it simply, SpringMVC can be compared to Struts.
Spring is a container framework for IOC and AOP. SpringMVC is a Web framework added based on Spring functions. If you want to use SpringMVC, you must first rely on Spring.
Spring can be said to be a container that manages beans, or it can be said to be a general term for many open source projects. Spring mvc is one of the open source projects, so if you follow a simple process, once the http request arrives, it will be sent by the container (such as: tomact ) parses http into a request, and uses the spring mvc distributor to find the bean that can handle the request through the mapping relationship (path, method, parameter). Then in tomcat, the bean is managed by spring in a pool (bean container) Found and processed, the response is returned.
SpringMVC is a WEB development framework in MVC mode;
Spring is a universal solution, and its greatest use is to solve the problem through Ioc/AOP Coupling, reducing software complexity, so Spring can be used in conjunction with many other solutions such as SpringMVC, not only suitable for WEB development
Spring is a solution to many problems in J2EE development A powerful framework for frequently asked questions. Spring provides a consistent way to manage business objects and encourages the good habit of programming to interfaces rather than classes. The architectural foundation of Spring is based on the Inversion of Control container using JavaBean properties. However, this is only part of the complete picture: Spring is unique in using IOC containers as a complete solution that focuses on all architectural layers. Spring provides the only data access abstraction, including a simple and efficient JDBC framework, greatly improving efficiency and reducing possible errors. Spring's data access architecture also integrates Hibernate and other O/R mapping solutions. Spring also provides the only transaction management abstraction that can provide a consistent programming model across various underlying transaction management technologies, such as JTA or JDBC transactions. Spring provides an AOP framework written in the standard Java language, which provides declarative transaction management and other enterprise affairs for POJOs and - if you need - you can also implement your own aspects. This framework is powerful enough to enable applications to put aside the complexity of EJB while enjoying the key services associated with traditional EJB. Spring also provides a powerful and flexible MVC Web framework that can be integrated with IoC containers.
Recommended tutorial: "java tutorial"
The above is the detailed content of The difference between spring and springmvc. For more information, please follow other related articles on the PHP Chinese website!

Start Spring using IntelliJIDEAUltimate version...

When using MyBatis-Plus or other ORM frameworks for database operations, it is often necessary to construct query conditions based on the attribute name of the entity class. If you manually every time...

Java...

How does the Redis caching solution realize the requirements of product ranking list? During the development process, we often need to deal with the requirements of rankings, such as displaying a...

Conversion of Java Objects and Arrays: In-depth discussion of the risks and correct methods of cast type conversion Many Java beginners will encounter the conversion of an object into an array...

Solutions to convert names to numbers to implement sorting In many application scenarios, users may need to sort in groups, especially in one...

Detailed explanation of the design of SKU and SPU tables on e-commerce platforms This article will discuss the database design issues of SKU and SPU in e-commerce platforms, especially how to deal with user-defined sales...

How to set the SpringBoot project default run configuration list in Idea using IntelliJ...


Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

Video Face Swap
Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Article

Hot Tools

SecLists
SecLists is the ultimate security tester's companion. It is a collection of various types of lists that are frequently used during security assessments, all in one place. SecLists helps make security testing more efficient and productive by conveniently providing all the lists a security tester might need. List types include usernames, passwords, URLs, fuzzing payloads, sensitive data patterns, web shells, and more. The tester can simply pull this repository onto a new test machine and he will have access to every type of list he needs.

WebStorm Mac version
Useful JavaScript development tools

Atom editor mac version download
The most popular open source editor

EditPlus Chinese cracked version
Small size, syntax highlighting, does not support code prompt function

DVWA
Damn Vulnerable Web App (DVWA) is a PHP/MySQL web application that is very vulnerable. Its main goals are to be an aid for security professionals to test their skills and tools in a legal environment, to help web developers better understand the process of securing web applications, and to help teachers/students teach/learn in a classroom environment Web application security. The goal of DVWA is to practice some of the most common web vulnerabilities through a simple and straightforward interface, with varying degrees of difficulty. Please note that this software