当前位置:网站首页>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]所创,转载请带上原文链接,感谢
边栏推荐
猜你喜欢
随机推荐
JVM内存区域与垃圾回收
10款好用的自动化测试工具
自然语言处理之分词、命名主体识别、词性、语法分析-stanfordcorenlp-NER(二)
Using class weight to improve class imbalance
微服务 - 如何解决链路追踪问题
梯度下降算法在机器学习中的工作原理
Python + Appium 自動化操作微信入門看這一篇就夠了
滴滴 Elasticsearch 集群跨版本升级与平台重构之路
适合时间序列数据的计算脚本
不能再被问住了!ReentrantLock 源码、画图一起看一看!
按指定基准对齐的分组运算
写一个通用的幂等组件,我觉得很有必要
Python爬蟲實戰詳解:爬取圖片之家
c++学习之路:从入门到精通
drf JWT认证模块与自定制
Big data real-time calculation of baichenghui Hangzhou station
htmlcss
为了省钱,我用1天时间把PHP学了!
刷了LeetCode的链表专题,我发现了一个秘密!
技术总监,送给刚毕业的程序员们一句话——做好小事,才能成就大事