当前位置:网站首页>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]所创,转载请带上原文链接,感谢
边栏推荐
- 【數量技術宅|金融資料系列分享】套利策略的價差序列計算,恐怕沒有你想的那麼簡單
- 【QT】 QThread部分原始碼淺析
- Azure DevOps 扩展之 Hub 插件的菜单权限控制配置
- Working principle of gradient descent algorithm in machine learning
- 刷了LeetCode的链表专题,我发现了一个秘密!
- H5打造属于自己的视频播放器(JS篇2)
- React 高阶组件浅析
- Outlier detection based on RNN self encoder
- 面经手册 · 第14篇《volatile 怎么实现的内存可见?没有 volatile 一定不可见吗?》
- 按指定基准对齐的分组运算
猜你喜欢
随机推荐
9.2.1 xmlconfigbuilder constructor (xmlconfigbuilder analysis) - SSM in depth analysis and project practice
Skywalking系列博客1-安装单机版 Skywalking
十二因子原则和云原生微服务 - DZone
keras model.compile损失函数与优化器
基于RNN自编码器的离群点检测
50+开源项目正式集结完毕,百万开发者正在投票
(1)ASP.NET Core3.1 Ocelot介绍
网络安全工程师演示:原来***是这样获取你的计算机管理员权限的!【***】
JUC 包下工具类,它的名字叫 LockSupport !你造么?
滴滴 Elasticsearch 集群跨版本升级与平台重构之路
基于SVM的异常检测方法
C语言中字符字符串以及内存操作函数
Anomaly detection method based on SVM
看完这篇就看懂了很多webpack脚手架
互联网 舆情系统的架构实践
安装Consul集群
Vue.js移动端左滑删除组件
8.1.3 handling global exceptions through exceptionhandler (Global exception handling) - SSM in depth analysis and project practice
基础知识点整理
python 下载模块加速实现记录