Spring/Spring Data JPA1 @CreatedDate, @LastModifiedDate @CreatedDate, @LastModifiedDate를 사용하기 위해서는 Spring Boot를 실행시키는 클래스(~~~Application)상단에 @EnableJpaAuditing를 적어줘야 한다 @SpringBootApplication @EnableJpaAuditing public class ZamongcampusServerApplication { public static void main(String[] args) { new SpringApplicationBuilder(ZamongcampusServerApplication.class) .properties(APPLICATION_LOCATIONS) .run(args); } } 그리고 @MappedSuperclass와 @EntityListeners를.. 2022. 11. 5. 이전 1 다음