Update README.md
This commit is contained in:
parent
0f226ba529
commit
719009b7e4
@ -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)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user