1. Spring Web MVC

Spring Web MVC 是基于 Servlet API 构建的原始 Web 框架,并且从一开始就已包含在 Spring 框架中。 正式名称“Spring Web MVC”来自其源模块的名称(spring-webmvcopen in new window),但通常称为“Spring MVC”。

与 Spring Web MVC 并行,Spring Framework 5.0 引入了一个反应式技术栈 Web 框架,其名称“Spring WebFlux”也基于其源模块(spring-webfluxopen in new window)。 本节介绍 Spring Web MVC。 下一章open in new window将介绍 Spring WebFlux。

有关基线信息以及与 Servlet 容器与 Java EE 版本兼容性的范围,请参见 Spring Framework Wikiopen in new window

1.1. DispatcherServlet

WebFluxopen in new window

1.1.1. Context Hierarchy

1.1.2. Special Bean Types

1.1.3. Web MVC Config

1.1.4. Servlet Config

1.1.5. Processing

1.1.6. Interception

1.1.7. Exceptions

1.1.8. View Resolution

1.1.9. Locale

1.1.10. Themes

1.1.11. Multipart Resolver

1.1.12. Logging

1.2. Filters

1.3. Annotated Controllers

1.4. Functional Endpoints

1.6. Asynchronous Requests

1.7. CORS

1.8. Web Security

1.9. HTTP Caching

1.10. View Technologies

1.11. MVC Config

1.12. HTTP/2