From b0c4567cd15c01c55de744d08891a88f6607ce1a Mon Sep 17 00:00:00 2001 From: DongminL Date: Sun, 8 Dec 2024 02:31:08 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20spring=20batch=EA=B0=80=20h2=20db?= =?UTF-8?q?=EC=97=90=20=EC=A0=81=EC=9A=A9=EB=90=98=EB=8F=84=EB=A1=9D=20?= =?UTF-8?q?=EC=84=A4=EC=A0=952?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/com/example/shop/global/config/BatchTestConfig.java | 4 ++-- src/test/resources/application-test.yaml | 3 +-- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/src/test/java/com/example/shop/global/config/BatchTestConfig.java b/src/test/java/com/example/shop/global/config/BatchTestConfig.java index fb57dd3..34411c5 100644 --- a/src/test/java/com/example/shop/global/config/BatchTestConfig.java +++ b/src/test/java/com/example/shop/global/config/BatchTestConfig.java @@ -2,9 +2,9 @@ import org.springframework.batch.core.configuration.annotation.EnableBatchProcessing; import org.springframework.boot.autoconfigure.EnableAutoConfiguration; -import org.springframework.boot.test.context.TestConfiguration; +import org.springframework.context.annotation.Configuration; -@TestConfiguration +@Configuration @EnableBatchProcessing @EnableAutoConfiguration public class BatchTestConfig { diff --git a/src/test/resources/application-test.yaml b/src/test/resources/application-test.yaml index 0871b4e..c6c0337 100644 --- a/src/test/resources/application-test.yaml +++ b/src/test/resources/application-test.yaml @@ -5,7 +5,6 @@ spring: username: sa password: - jpa: show-sql: true hibernate: @@ -15,6 +14,7 @@ spring: format_sql: true dialect: org.hibernate.dialect.H2Dialect defer-datasource-initialization: true + database: h2 mail: host: 127.0.0.1 @@ -40,7 +40,6 @@ spring: batch: jdbc: initialize-schema: always - schema: classpath:org/springframework/batch/core/schema-h2.sql web: resources: