Skip to content

Latest commit

 

History

History
18 lines (13 loc) · 424 Bytes

File metadata and controls

18 lines (13 loc) · 424 Bytes

스프링 부트 Junit 테스트 강의

Junit Bank App

Jpa LocalDateTime 자동으로 생성하는 법

  • @EnableJpaAuditing (Main 클래스)
  • @EntityListners(AuditingEntityListner.class) (Entity 클래스)
    @CreatedDate // Insert
    @Column(nullable = false)
    private LocalDateTime createdAt;

    @LastModifiedDate //Update
    @Column(nullable = false)
    private LocalDateTime updatedAt;