当前位置:网站首页>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 Metaspace内存溢出排查与总结
阻塞队列之LinkedBlockingQueue分析
windows10 tensorflow(二)原理实战之回归分析,深度学习框架(梯度下降法求解回归参数)
Python爬蟲實戰詳解:爬取圖片之家
html
适合时间序列数据的计算脚本
9.1 sqlsessionfactorybuilder - SSM in depth analysis and project practice
JUC 包下工具类,它的名字叫 LockSupport !你造么?
Skywalking系列博客2-Skywalking使用
技术总监,送给刚毕业的程序员们一句话——做好小事,才能成就大事
VUEJS开发规范
9.2.4 settingselement method (XML configuration builder analysis) - SSM in depth analysis and project practice
互联网 舆情系统的架构实践
NodeJs爬虫抓取古代典籍,共计16000个页面心得体会总结及项目分享
阿里CCO项目组面试的思考
用git2consul从Git同步配置到Consul
高级 Vue 组件模式 (3)
为什么民营企业要做党建?——极客邦控股党支部专题学习
结构化数据中的从属判断问题
为了省钱,我用1天时间把PHP学了!







