摘要: 在字段上加一个注解 如:import org.springframework.format.annotation.DateTimeFormat;@DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")private Date applyDate; //受理日期使用 的话,默认就启用FormattingConversionServiceFactoryBean了,所以上面的配置也省了。还支持货币 、number等的转换备忘:YYYY-mm-dd HH:MM:SS部分解释d 月中的某一天。一位数的日期没有前导零。 dd 月中的某一天。一位数的日 阅读全文
posted @ 2013-06-27 09:49 hwj2wj 阅读(265) 评论(0) 推荐(0) 编辑