The evolution process of springMVC to springboot
Advantages of springboot:
- Build a project in seconds using the Spring Project Bootstrap page
- It is convenient to export various forms of services, such as REST API, WebSocket, Web, Streaming, and Tasks. Very simple security policy integration
- Supports relational and non-relational databases
- Supports embedded containers during runtime, such as Tomcat, Jetty's powerful development kits,
- Support hot start automatic management, rely on its own application monitoring, support various IEDs, such as IntelliJ IDEA and NetBeans, the disadvantage is that the integration is high,
Disadvantages of springboot
- It is not easy to understand the underlying layer during use.
Basic configuration of traditional springMVC
1. Download the springboot source code
阅读springboot源码之前首先要搞懂的是springmvn和springframework的源码
1) The main xml analysis in springMVC!
The main three xml configuration files: the
traditional java project entry is the main method, if it is done by spring; first, the context of spring to be initialized is from xml; the
traditional web project entry is the tomcat==web.xml method; To initialize,
ContextLoadListener(xml){ initialize spring's context----