![](https://img-blog.csdnimg.cn/20201014180756754.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Spring boot
你好丶明天
没啥。
展开
-
Spring Boot Json注解
pojo的bean里面通常会有Date类型的数据,直接通过@ResponseBody返回出去的是一个长整型时间戳(从1970到该变量时间的毫秒数),关于原因,网上很多,此处不细讲。如果想要返回自定义的日期格式,如:yyyymmddhhmmss,需做相关处理,网上有很多处理方式,大体都是继承、重写,比较复杂。实际上JSON已有注解@JsonFormat支持,使用实例: @JsonFormat(转载 2017-04-19 14:34:37 · 2619 阅读 · 0 评论 -
spring 加载自定义配置
配置类,自动装配 # order config order.refund.request.time=7 order.automaticCancelOrder=2 配置文件原创 2017-05-17 17:25:46 · 826 阅读 · 0 评论