1、PropertyEditor

  继承PropertyEditorSupport

//controller
@Controller
public class TestController extends PropertyEditorSupport{
//重写PropertyEditorSupport的setAsText方法
@Override
public void setAsText(String text) throws IllegalArgumentException {
User u = new User();
String[] textArray = text.split(",");
u.setName(textArray[0]);
u.setAge(Integer.parseInt(textArray[1]));
this.setValue(u);
}

//TODO: http://127.0.0.1:8080/SpringMVC/propertyEditir?text=Tom,20
@RequestMapping(value="propertyEditir")
@ResponseBody
public String propertyEditir(String text) {
this.setAsText(text);
return ((User)this.getValue()).toString();
} }

2、Formatter

最新文章

  1. VC++常用函数
  2. 添加事件及Event对象的兼容写法
  3. NSDICTIONARY获取内容的CRASH
  4. 数据库的Instance/Crash Recovery
  5. JavaEE EL的一些用法
  6. Python中的基本语句
  7. 简易promise
  8. 服务列表 - Sina App Engine
  9. Linux 安装qt5-designer并集成到Pycharm
  10. 用Nuget部署程序包
  11. Select查询命令
  12. Excel 导出通用类
  13. ERROR tool.ImportTool: Encountered IOException running import job: java.io.IOException: Cannot run program "hive": error=2, No such file or directory
  14. pkg-config原理及用法
  15. [作业] Python入门基础--三级菜单
  16. 一文看尽HashMap
  17. quick cocos2dx 3.x 配置win32工程
  18. 修改JQM的默认配置属性
  19. rocketmq消费负载均衡--push消费为例
  20. 使用FormData实现ajax文件异步上传

热门文章

  1. Codeforces Round #297 (Div. 2) [ 折半 + 三进制状压 + map ]
  2. D. Babaei and Birthday Cake---cf629D(最长上升子序列和+线段树优化)
  3. CD-----UVa624(01背包+输出路径)
  4. 转: ORACLE存储过程笔记3----流程控制
  5. git获取远程分支
  6. SQL Server Fundamentals
  7. 查看linux接口进出口流量的命令;linux 网络监控;流量监控
  8. [Node.js] Write or Append to a File in Node.js with fs.writeFile and fs.writeFileSync
  9. [TypeScript] Query Properties with keyof and Lookup Types in TypeScript
  10. Angular结构简单介绍