Introduction to Spring MVC

Spring MVC是一种基于Spring平台的轻量级Web框架,采用Model-View-Controller架构模式。它支持主题、国际化、RESTful服务等功能,并能通过注解进行配置。Spring MVC克服了Struts1的不足之处,与Spring生态系统的其他组件无缝集成。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

What is Spring MVC

  • A web framework built around the principles of Spring
  • POJO based and Interface driven
  • Based on a Dispatcher Servlet/Front Controller pattern
        MVC stands for Model-View-Controller
  • Very lightweight and unobtrusive compared to other frameworks
  • Built from the shortcomings of Struts 1
  • Support for:
        Themes
        Locales/i18n
        Restful services
        Annotation based configuration
        Seamless integration with other Spring Services/Beans


-------------------------------------------------------

History



-----------------------------------------------------------

Architecture



---------------------------------------------------------------

Request/ Response Lifecycle



-----------------------------------------------------------

Vocabulary

  • DispatcherServlet - The entry/ configuration point for the Application
  • Controller - Command pattern object that handles the request and determines which view to route to
  • RequestMapping - The url and  request type that a method is tied to
  • ViewResolver - Used to locate JSP pages or whatever view we are using
  • Servlet-config - Configuration file per DispatcherServlet
  • POJO - Plain Old Java Object
  • Bean - A Spring configured POJO

---------------------------------------------------------------

Summary

  • J2EE Based
  • Built around best practice patterns
  • Stable release cycle
  • Backwards compatible
  • Very active community
  • Lightweight and unobtrusive
  • Flexible to use with Web Services, Javascript UI, standard HTML, etc...

---------------------------------------------------------

Spring MVC - Building
https://blog.youkuaiyun.com/u012596785/article/details/79880312

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值