前端传递的是时间戳,在后端接收参数时转换成UTC时间
@InitBinder
protected void initBinder(WebDataBinder binder) {
binder.registerCustomEditor(Date.class, new MyDateEditor());
}
private class MyDateEditor extends PropertyEditorSuppo...
原创
2018-09-13 20:08:36 ·
16789 阅读 ·
0 评论