琐碎总结(SpringMvc)
来源:互联网 发布:mac的图片处理 编辑:程序博客网 时间:2024/06/04 23:27
request.getSession(true):若存在会话则返回该会话,否则新建一个会话。等同于request.getSession()
request.getSession(false):若存在会话则返回该会话,否则返回NULL
http://jinnianshilongnian.iteye.com/blog/1617451 跟开涛学SpringMvc
http://www.chedong.com/tech/cache_docs.html HTTP缓存控制及为什么要缓存
AbstractCommandController
- package cn.javass.chapter4.model;
- public class UserModel {
- private String username;
- private String password;
- //省略setter/getter
- }
- package cn.javass.chapter4.web.controller;
- //省略import
- public class MyAbstractCommandController extends AbstractCommandController {
- public MyAbstractCommandController() {
- //设置命令对象实现类
- setCommandClass(UserModel.class);
- }
- @Override
- protected ModelAndView handle(HttpServletRequest req, HttpServletResponse resp, Object command, BindException errors) throws Exception {
- //将命令对象转换为实际类型
- UserModel user = (UserModel) command;
- ModelAndView mv = new ModelAndView();
- mv.setViewName("abstractCommand");
- mv.addObject("user", user);
- return mv;
- }
- }
- 琐碎总结(SpringMvc)
- C# 琐碎知识-总结
- 琐碎问题总结
- php项目琐碎总结
- Python琐碎知识总结
- Struts2 OGNL valueStack琐碎总结
- C++ 琐碎知识总结 - 1
- C++ 琐碎知识总结 - 2
- 琐碎
- 琐碎
- 琐碎
- 琐碎
- 琐碎
- 琐碎
- 琐碎
- 总结一下一些琐碎之事
- C#学习之琐碎---小总结
- 关于一些琐碎东西的总结
- C++知识点补强之----数组作为参数传递
- dedecms 调用单页面内容
- TurboIM专业集成即时通讯获新宠
- 黑马程序员————HTML基础
- hdu 1284 钱币兑换问题 数学详解
- 琐碎总结(SpringMvc)
- 设置mysql允许外网访问
- linux下对字符串的操作
- python中二维列表的创建
- Visual Studio XXXX 对应的VC版本号
- Visual Assist X如何支持vc6和vs2003
- struts2 form标签加上validate="true"就出错的解决办法
- 【iOS知识学习】_UITableView简介
- 关于网线水晶头的接法详解