目录
SpringMVC参数获取_使用Servlet原生对象获取参数
SpringMVC注解_@RequestHeader、@CookieValue
SpringMVC注解_@SessionAttributes
@PostMapping、@GetMapping、@PutMapping、 @DeleteMapping
SpringMVC简介
MVC模型
MVC全称Model View Controller,是一种设计创建Web应用程序的 模式。这三个单词分别代表Web应用程序的三个部分:
Model(模型):指数据模型。用于存储数据以及处理用户请求 的业务逻辑。在Web应用中,JavaBean对象,业务模型等都属 于Model。
View(视图):用于展示模型中的数据的,一般为jsp或html文 件。
Controller(控制器):是应用程序中处理用户交互的部分。接 受视图提出