Git Product home page Git Product logo

springmvc's Introduction

SpringMVC

SpringMVC工作的详细流程

SpringMVC

WEB-INF

WEB-INF是Java WEB应用的安全目录,即客户端无法访问,只有服务端可以访问的目录

/WEB-INF/web.xml
Web应用程序配置文件

HandlerMapping

通过处理器映射,你可以将Web请求映射到正确的处理器Controller上

目前主要有三个实现:
    SimpleUrlHandlerMapping
    BeanNameUrlHandlerMapping
    RequestMappingHandlerMapping
其中最常使用的就是RequestMappingHandlerMapping

HandlerAdapter

主要作用就是调用具体的方法对用户发来的请求来进行处理

DispatcherServlet会根据Controller对应的Controller类型调用相应的HandlerAdapter来处理

ViewResolver

将逻辑视图转化为用户可见的物理视图

最常用的就是InternalResourceViewResolver,将视图名解析为一个url静态文件

springmvc's People

Contributors

sleepy-zeo avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.