Update README.md

This commit is contained in:
heibaiying 2019-01-31 15:23:09 +08:00 committed by GitHub
parent 0f226ba529
commit 719009b7e4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -494,7 +494,7 @@ public class ParamBindController {
} }
``` ```
2.利用@DateTimeFormat注解,如果是用实体类去接收参数,则在对应的属性上声明 2.利用@DateTimeFormat注解,如果是用实体类去接收参数,则在对应的属性上@DateTimeFormat和@JsonFormat声明
```java ```java
public String param(@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") Date birthday) public String param(@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") Date birthday)