From 719009b7e434876c2117d82a8a0cb31998acce33 Mon Sep 17 00:00:00 2001 From: heibaiying <31504331+heibaiying@users.noreply.github.com> Date: Thu, 31 Jan 2019 15:23:09 +0800 Subject: [PATCH] Update README.md --- spring/springmvc-base-annotation/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spring/springmvc-base-annotation/README.md b/spring/springmvc-base-annotation/README.md index a9111ad..ad351d3 100644 --- a/spring/springmvc-base-annotation/README.md +++ b/spring/springmvc-base-annotation/README.md @@ -494,7 +494,7 @@ public class ParamBindController { } ``` -2.利用@DateTimeFormat注解,如果是用实体类去接收参数,则在对应的属性上声明 +2.利用@DateTimeFormat注解,如果是用实体类去接收参数,则在对应的属性上用@DateTimeFormat和@JsonFormat声明 ```java public String param(@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") Date birthday)