Home >Common Problem >What are the differences between springboot and springmvc
The difference between springboot and springmvc is: 1. Different meanings; 2. Different configurations; 3. Different dependencies; 4. Different development time; 5. Different productivity; 6. Different ways to implement JAR packaging function; 7 , whether to provide batch processing function; 8. Different functions; 9. Different community and document support; 10. Whether deployment descriptors are required.
#The operating environment of this article: Windows 10 system, dell g3 computer.
The difference between springboot and springmvc is:
1. Different meanings
springboot: SpringBoot is an automated configuration tool.
springmvc: SpringMVC is a web framework.
2. Different configurations
springboot: SpringBoot adopts the method of convention over configuration, automatically handles configuration through its automatic configuration function, and has a built-in server, which can be used directly after opening it.
springmvc: This framework requires a lot of configuration, such as DispatcherServlet configuration and View Resolver configuration. The xml file needs to be manually configured, and the Tomcat server needs to be configured.
3. Different dependencies
springboot: springboot has the concept of a starter, and once it is added to the classpath, it will bring all the dependencies required to develop a web application.
springmvc: Each dependency needs to be specified individually to run functionality.
4. Development time is different
springboot: Spring Boot helps reduce development time because all dependency-related tasks are taken care of.
springmvc: Development requires more time compared to Spring Boot as developers need to spend time adding required dependencies.
5. Different productivity
springboot: Productivity increases due to shorter development time.
springmvc: Productivity loss due to need to understand dependency add-ons.
6. Different ways to implement JAR packaging function
springboot: Spring Boot allows embedded servers to run this function in an independent manner.
springmvc: Spring MVC requires a lot of manual configuration to implement the JAR packaging function.
7. Whether to provide batch processing function
springboot: It provides powerful batch processing.
springmvc: It does not provide powerful batch processing.
8. Different functions
springboot: Spring Boot also allows building different types of applications.
springmvc: Spring MVC is only used to develop dynamic web pages and RESTful network services.
9. Community and documentation support are different
Spring MVC’s community and documentation are much better than Spring boot.
10. Whether a deployment descriptor is required
springboot: No deployment descriptor is required.
springmvc: Deployment descriptor required.
The above is the detailed content of What are the differences between springboot and springmvc. For more information, please follow other related articles on the PHP Chinese website!