0
点赞
收藏
分享

微信扫一扫

message [Failed to convert property value of type

阎小妍 2022-08-18 阅读 139

springmvc前台字符串,后台Date类型字段。时间强转失败

数值:18年12月31日 15:43:21

解决方法,给时间字段加注释

@DateTimeFormat(pattern = "yy年MM月dd日 HH:mm:ss")
private

 

举报

相关推荐

0 条评论