@EntityScan(basePackageClasses = {Application.class, Jsr310JpaConverters.class}) //등록
@SpringBootApplication
public class RefactoringApplication {
public static void main(String[] args) {
SpringApplication.run(RefactoringApplication.class, args);
}
}
{
"expirationDate": [ // 포멧팅전
2018,
12,
12,
0,
0
],
}
{
"expirationDate": "2018-12-12T00:00:00", // 변경후
}
<dependency>
<groupId>com.fasterxml.jackson.datatype</groupId>
<artifactId>jackson-datatype-jsr310</artifactId>
</dependency>
spring:
jackson:
serialization:
WRITE_DATES_AS_TIMESTAMPS: false