摘要: springFramework的类型转换机制代码位于spring-core.jar(spring3.0.5为例)下的org.springframework.core.convert包。由上面的构件图可知,spring的convert系统大致由ConversionSerivce接口、converter包、support包三部分组成。(1)ConversionService接口直接就位于org.springframework.core.convert包下,是整个convert系统的入口,定义了如下方法: boolean canConvert(Class<?> sourceType, C 阅读全文
posted @ 2012-01-19 18:57 杭州胡欣 阅读(2281) 评论(0) 推荐(1) 编辑