[spring-boot] 热部署/时间格式化

环境:
Spring-boot:2.1.2
IDEA 2018.3
MAVEN 3.6.0

1.热部署(hot swapping)

加入依赖:
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-devtools</artifactId>
<optional>true</optional>
</dependency>

一些设置:


2.时间格式化,变成东八区时间:
@JsonFormat(timezone="GMT+8", pattern="yyyy-MM-dd")
private Date originRelease;

猜你喜欢

转载自www.cnblogs.com/wanyi/p/10352868.html
今日推荐