springmvc流程

request---->DispatcherServlet–>HandlerMappind–>Controller–>ModelAndView–>ViewResolver–>Response

入门案例:





    
    




web.xml:



    Archetype Created Web Application
 
    
    
        dispatcherServlet
        org.springframework.web.servlet.DispatcherServlet
        
            contextConfigLocation
            classpath:springmvc.xml
        
        1
    
    
        dispatcherServlet
        /
    
 


你可能感兴趣的:(springmvc流程)