当前位置:网站首页>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]所创,转载请带上原文链接,感谢
边栏推荐
- 网络安全工程师演示:原来***是这样获取你的计算机管理员权限的!【***】
- c++学习之路:从入门到精通
- 7.3.2 File Download & big file download
- 5.4 静态资源映射 -《SSM深入解析与项目实战》
- 03_ubuntu samba 安装配置详解与测试
- 2020十大最佳大数据分析工具,果断收藏
- 刷了LeetCode的链表专题,我发现了一个秘密!
- 9.2.3 loadcustomvfs method (XML configuration builder analysis) - SSM in depth analysis and project practice
- H5打造属于自己的视频播放器(JS篇2)
- APReLU:跨界应用,用于机器故障检测的自适应ReLU | IEEE TIE 2020
猜你喜欢
随机推荐
使用LIME解释黑盒ML模型
JVM内存区域与垃圾回收
高级 Vue 组件模式 (3)
Using tensorflow to forecast the rental price of airbnb in New York City
微信小程序:防止多次点击跳转(函数节流)
【C/C++ 2】Clion配置与运行C语言
7.2.3 GZIP一键压缩工具 -《SSM深入解析与项目实战》
html
技術總監7年經驗,告訴大家,【拒絕】才是專業
Using class weight to improve class imbalance
10款好用的自动化测试工具
一场关于FLV是否要支持HEVC的争论
梯度下降算法在机器学习中的工作原理
键盘录入抽奖人随机抽奖
二叉树的常见算法总结
經典動態規劃:完全揹包問題
为了省钱,我用1天时间把PHP学了!
Gradient understanding decline
基础知识点整理
2个月再招10000人,字节跳动冲刺10万员工“小目标”