Spring MVC deep learning

Spring MVC deep learning

You can learn to learn Spring MVC with Kaitao

 

http://www.iteye.com/blogs/subjects/kaitao-springmvc#1655

 

 

own summary

 

    1. When we send a request like http://127.0.0.1:8080/test/index.html in the browser, the front-end forwarder DispatcherServlet registered by SpringMVC in web.xml receives it.

 

    2. View which method and class are mapped to through the URL. The key stored in the MultiValueMap<String, T> urlMap is the url, and the value is the RequestMappingInfo information (params, etc.). RequestMappingInfo obtains the Controller class and finds the corresponding method. And the wrapper returns the HandlerMethod.

 

    3. Through BeanName, go to the factory to get the initialized Bean, then re-initialize the HandlerMethod object, and set the bean, as well as beanFactory, method, parameters and other properties.

 

    4. Add interceptor and handler to HandlerExecutionChain and return to HandlerExecutionChain.

 

    5. The HandlerAdapter dynamically calls the HandlerExecutionChain method and returns the ModelAndView.

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326487166&siteId=291194637