当前位置:网站首页>6.9.1 flashmapmanager initialization (flashmapmanager redirection Management) - SSM in depth analysis and project practice
6.9.1 flashmapmanager initialization (flashmapmanager redirection Management) - SSM in depth analysis and project practice
2020-11-06 01:14:00 【Memory】
List of articles
6.9 FlashMapManager Redirection Management
FlashMapManager It's for retrieval and preservation FlashMap Instance policy interface .
Spring3.1 And then we introduced a new one called Flash Attribute The function of , It is mainly to solve the problem of submitting data repeatedly in the form , application POST/Redirect/GET(PRG) Mode to prevent duplicate submission of data ( Form passed HTTP POST After the request is submitted , The user refreshes the response page before the server returns , Will cause the original form content to be submitted repeatedly , It may lead to some unpredictable results ).
So use the redirection request to the success page , In this way, users will not submit the form when they refresh , It's loading new GET request . But redirection introduces the problem of not passing request parameters and properties , therefore Spring Of Flash Attribute It's to ask for redirection before , Solve the problem of temporary storage .
FlashMap Provide a method for one request to store data properties used in another request .
When from a URL Redirect to another URL when ,FlashMap The request data will be saved before redirection ( It is usually kept in Session in ), And write the data to the request when redirecting , And immediately after the reset, the original will be saved in Session Request data deletion in . and FlashMapManager It's used to manage FlashM
版权声明
本文为[Memory]所创,转载请带上原文链接,感谢
边栏推荐
猜你喜欢
随机推荐
按指定基准对齐的分组运算
别走!这里有个笔记:图文讲解 AQS ,一起看看 AQS 的源码……(图文较长)
VuePress的使用
Jumpserver高可用集群部署:(六)SSH代理模块koko部署并实现系统服务管理
Python机器学习算法:线性回归
C语言100题集合004-统计各个年龄阶段的人数
互联网 舆情系统的架构实践
9.1 sqlsessionfactorybuilder - SSM in depth analysis and project practice
计算机TCP/IP面试10连问,你能顶住几道?
H5打造属于自己的视频播放器(JS篇2)
leetcode之赎金信
6.9.1 FlashMapManager初始化(FlashMapManager重定向管理) -《SSM深入解析与项目实战》
【C/C++ 2】Clion配置与运行C语言
Using class weight to improve class imbalance
Big data real-time calculation of baichenghui Hangzhou station
Flink on PaaSTA:Yelp运行在Kubernetes上的新流处理平台
让前端攻城师独立于后端进行开发: Mock.js
【无思路题目】1636. 按照频率将数组升序排序
【jmeter】實現介面關聯的兩種方式:正則表示式提取器和json提取器
给萌新HTML5 入门指南(二)