摘要: 在实体类中,字段属性设为LocalDateTime,发现前端无论传什么参数,都是报错 会发现,前端给的是String类型,而你要的却是LocalDateTime类型,所以无非匹配,所以在入参的时候,要用@DateTimeFormat 注解格式化参数。 1.当你在controller用@DateTim 阅读全文
posted @ 2021-04-21 22:24 cafenoir 阅读(1139) 评论(0) 推荐(0)