通过Postman调试SpringMVC时出现日期转换错误的解决方案

来源:互联网 发布:python 开源题库系统 编辑:程序博客网 时间:2024/06/08 07:30

@InitBinderprotected def initBinder(binder: WebDataBinder): Unit = {  val dateFormat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss")  binder.registerCustomEditor(classOf[Date], new CustomDateEditor(dateFormat, true))}


---->End

阅读全文
0 0
原创粉丝点击