- 博客(1)
- 收藏
- 关注
原创 Spring boot Controller类返回Date时间少8小时
前后台调试时发现时间少8小时,后台各种debug,发现时间一点问题没有,但是返回到浏览器端就莫名少8个小时,各种无解,最后查了一下spring-boot的资料,发现问题所在,总结如下:spring-boot中对于@RestController或者@Controller+@ResponseBody注解的接口方法的返回值默认是Json格式,所以当对于date类型的数据,在返回浏览器端是会被spring...
2018-07-05 19:25:08 8743 5
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人