0
나는 내 자바 클래스봄 부팅, 잭슨과 LOCALDATE
에서compile('org.springframework.boot:spring-boot-starter-data-jpa')
compile('org.springframework.boot:spring-boot-starter-data-rest')
compile('org.springframework.boot:spring-boot-starter-web')
compile 'com.fasterxml.jackson.datatype:jackson-datatype-jsr310'
을 내 application.properties 내 build.gradle에서
spring.jpa.generate-ddl=true
spring.jackson.serialization.write-dates-as-timestamps=false
을에 mysql을
와봄 부트를 사용
가져 오기 java.time.LocalDate; 이 테이블이 생성됩니다
@Entity
public class WebSite implements Serializable{
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
private Long webSiteId;
private LocalDate date;
...
}
,
날짜 필드가
왜이 잭슨에 문제가되지 않는 일