解决前端到后端日期乱码问题
1、解决前端传至后端乱码问题
spring配置文件中增加
1 |
|
1 |
public class implements Converter<String,Date>{ |
3、同时在pojo类中getter方法加如下注解(解决后端传至前端日期格式是长整形数字的问题)
1 |
"yyyy-MM-dd HH:mm",timezone = "GMT+8") (pattern = |
解决前端到后端日期乱码问题
1、解决前端传至后端乱码问题
spring配置文件中增加
1 |
|
1 |
public class implements Converter<String,Date>{ |
3、同时在pojo类中getter方法加如下注解(解决后端传至前端日期格式是长整形数字的问题)
1 |
"yyyy-MM-dd HH:mm",timezone = "GMT+8") (pattern = |
近期评论