关于Spring中的property editor及converter的一些资料
来源:互联网 发布:python 继承 编辑:程序博客网 时间:2024/06/16 12:06
spring文档,可以好好读读:
http://static.springsource.org/spring/docs/3.2.x/spring-framework-reference/html/validation.html#format-configuring-formatting-mvc
还有涛哥写的一些教程文章:
http://jinnianshilongnian.iteye.com/blog/1723270
这篇博客中介绍得也不错:(还有formatter/httpmessageconvert的介绍)
http://b-l-east.iteye.com/blog/1705872
另外上详注2点:
1、在spring MVC中,从前台绑定转换类型时调用的顺序:
CustomEditor(在PropertyEditorRegistry中手工注册)->可用的Converter->BeanWrapperImpl's default editors->standard JavaBean editor(以Editor结尾的同包类)
见类:org.springframework.beans.TypeConverterDelegate.convertIfNecessary(String, Object, Object, Class<T>, TypeDescriptor)
2、与1反向操作,即从后台向前台传递时的顺序:
CustomEditor(在PropertyEditorRegistry中手工注册)->BeanWrapperImpl's default editors->standard JavaBean editor(以Editor结尾的同包类)->可用的Converter
- 关于Spring中的property editor及converter的一些资料
- 一些关于spring modelAndView的资料
- 记录:spring(springmvc) Editor Converter使用区别
- 关于iphone开发中的@property和@synthesize的一些见解
- 关于iphone开发中的@property和@synthesize的一些见解
- 关于iphone开发中的@property和@synthesize的一些见解
- 关于iphone开发中的@property和@synthesize的一些见解
- 关于iphone开发中的@property和@synthesize的一些见解
- spring mvc的表单类型转换(custom property editor)
- 关于@property的一些用法
- 一些关于KIRIKIRI及2等等等等的研究资料- -
- Spring Framework 的一些资料
- 关于VIM的一些资料
- 关于sizeof的一些资料
- 关于OSB的一些资料
- 一些关于VANET的资料
- 关于ACM的一些资料
- 关于scheme的一些资料
- Cocos2d-X游戏开发之libcurl(六)
- C\C++的main()的正确写法
- android中有这么些个SystemService,挨个儿了解
- action获取session的方式
- 模拟数字显示管
- 关于Spring中的property editor及converter的一些资料
- vb调用webservice,但是通过代理却不行
- 代码定位:__FILE__, __FUNCTION__, __LINE__
- svn返回值(403 Forbidden)的问题
- Android UI控件五
- C++基本功和 Design Pattern系列(1-3) - Inheritance VS Delegation
- _declspec(dllexport)修饰符的用法
- Struts2的配置文件详解
- 获取手机中已安装apk文件信息