![](https://img-blog.csdnimg.cn/20201014180756922.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
spring mvc
iteye_10764
这个作者很懒,什么都没留下…
展开
-
配置ResourceBundleViewResolver和FreeMarkerViewResolver
1.配置*-servlet.xml文件 2.配置views.properties文件。 注意下面的freeMarkerView属性与上面的defaultParentView的值相同 3.测试代码 4.文件的目录结构。 ...2014-05-04 13:51:19 · 1449 阅读 · 0 评论 -
Using flash attributes
flash attributes采用在被@RequestMapping注解修饰的方法上添加一个RedirectAttributes 类型的参数实现,当不加RedirectAttributes redirectAttributes这个参数时默认会将Model model里面的参数附加到请求url上面请求转发到下一个页面,如果加了RedirectAttributes redirectAttribut...2014-05-04 15:00:56 · 108 阅读 · 0 评论