From 82d5df33a04d92cf9fdb49871b00c83d03a66c05 Mon Sep 17 00:00:00 2001 From: dltjdgh0428 Date: Thu, 28 Mar 2024 00:12:09 +0900 Subject: [PATCH] =?UTF-8?q?fix=20:=20BaseTimeConfig=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../book_everywhere/common/config/BaseTimeConfig.java | 9 +++++++++ .../book_everywhere/common/entity/BaseTimeEntity.java | 1 + 2 files changed, 10 insertions(+) create mode 100644 src/main/java/com/book_everywhere/common/config/BaseTimeConfig.java diff --git a/src/main/java/com/book_everywhere/common/config/BaseTimeConfig.java b/src/main/java/com/book_everywhere/common/config/BaseTimeConfig.java new file mode 100644 index 0000000..36f7f05 --- /dev/null +++ b/src/main/java/com/book_everywhere/common/config/BaseTimeConfig.java @@ -0,0 +1,9 @@ +package com.book_everywhere.common.config; + +import org.springframework.context.annotation.Configuration; +import org.springframework.data.jpa.repository.config.EnableJpaAuditing; + +@Configuration +@EnableJpaAuditing +public class BaseTimeConfig { +} diff --git a/src/main/java/com/book_everywhere/common/entity/BaseTimeEntity.java b/src/main/java/com/book_everywhere/common/entity/BaseTimeEntity.java index cb9a459..846150e 100644 --- a/src/main/java/com/book_everywhere/common/entity/BaseTimeEntity.java +++ b/src/main/java/com/book_everywhere/common/entity/BaseTimeEntity.java @@ -1,5 +1,6 @@ package com.book_everywhere.common.entity; +import com.book_everywhere.common.config.BaseTimeConfig; import jakarta.persistence.Column; import jakarta.persistence.EntityListeners; import jakarta.persistence.MappedSuperclass;