JPA는 데이터의 생성일, 수정일 등 을 자동으로 넣어주는 Audit라는 기능을 제공합니다. Auditing을 이용하여 엔티티를 언제 생성/수정 했는지 기록하게 할 수 있습니다. Mybatis Interceptor를 이용하여 Message객체를 DB에 저장할 때 생성일을 (CreatedDate) 자동으로 추가 시켜보겠습니다. application.properties mybatis.config-location=classpath:mybatis-config.xml mybatis-config의 위치를 설정해줍니다. mybatis-config.xml AuditingInterceptor라는 Interceptor를 만들어서 플러그인 등록 해줍니다. Message public class Message { private..