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

Introduction to Spring MVC


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

Architecture

Introduction to Spring MVC


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

Request/ Response Lifecycle

Introduction to Spring MVC


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

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.csdn.net/u012596785/article/details/79880312

相关文章:

  • 2021-05-24
  • 2021-12-03
  • 2021-09-30
  • 2022-01-14
  • 2021-10-04
  • 2021-06-09
  • 2021-10-01
  • 2021-11-12
猜你喜欢
  • 2022-01-11
  • 2022-01-14
  • 2021-11-04
  • 2021-10-11
  • 2021-08-29
  • 2021-07-29
  • 2021-10-13
相关资源
相似解决方案