In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-06 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)06/02 Report--
What is the difference between spring boot and spring mvc, many novices are not very clear about this, in order to help you solve this problem, the following editor will explain in detail for you, people with this need can come to learn, I hope you can gain something.
The Spring framework is like a family, with many derivatives such as boot, security, jpa, and so on. But their foundation is Spring's ioc and aop ioc provide dependency injection container aop, solve the cross-section-oriented programming, and then implement the advanced functions of other extended products on the basis of both. Spring MVC is a MVC framework based on Servlet that mainly solves the problem of WEB development, because the configuration of Spring is very complex, and it is cumbersome to deal with all kinds of XML, JavaConfig and hin. So in order to simplify the use of developers, and thus creatively launched Spring boot, convention is better than configuration, simplifying the configuration process of spring. To put it more simply: Spring initially used "DI" and "AOP" to decouple application components. Everyone thought it was very useful, so they built a MVC framework (some components decoupled by Spring) according to this model, and used to develop web applications (SpringMVC). Then it is found that each development writes a lot of boilerplate code, in order to simplify the workflow, so developed some "lazy integration package" (starter), this set is Spring Boot. Spring MVC, the function of Spring MVC, provides a slightly coupled way to develop web applications. Spring MVC is a module of Spring, or a web framework. It is easy to develop web applications through Dispatcher Servlet, ModelAndView and View Resolver. The problem areas to be solved are web application or service development-URL routing, Session, template engine, static Web resources, and so on. Spring Boot, the function of Spring Boot, realizes automatic configuration, which reduces the complexity of project construction. It is well known that the Spring framework requires a lot of configuration, and Spring Boot introduces the concept of automatic configuration to make project setup easy. Spring Boot itself does not provide the core features and extension functions of the Spring framework, but is used to quickly and agile develop a new generation of applications based on the Spring framework. In other words, it is not an alternative to Spring, but a tool that works closely with the Spring framework to enhance the experience of Spring developers. At the same time, it integrates a large number of commonly used third-party library configurations (such as Jackson, JDBC, Mongo, Redis, Mail, etc.), Spring Boot applications in these third-party libraries can be almost zero configuration out-of-the-box (out-of-the-box), most Spring Boot applications need only a very small amount of configuration code, developers can be more focused on business logic. Spring Boot is just a carrier to help you simplify the project building process. If you are hosting a WEB project and use Spring MVC as the MVC framework, then the workflow is exactly the same as what you described above, because this part of the work is done by Spring MVC rather than Spring Boot. For users, after switching to Spring Boot, the project initialization method has changed, and the configuration file has changed. In addition, there is no need to install container servers such as Tomcat separately. Maven runs directly into a jar package, but there is no change in your core business logic implementation and business process implementation.
Is it helpful for you to read the above content? If you want to know more about the relevant knowledge or read more related articles, please follow the industry information channel, thank you for your support.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.