Skip to content

Commit

Permalink
fix: spring batch가 h2 db에 적용되도록 설정2
Browse files Browse the repository at this point in the history
  • Loading branch information
DongminL committed Dec 7, 2024
1 parent d055f26 commit b0c4567
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
3 changes: 1 addition & 2 deletions src/test/resources/application-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ spring:
username: sa
password:


jpa:
show-sql: true
hibernate:
Expand All @@ -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
Expand All @@ -40,7 +40,6 @@ spring:
batch:
jdbc:
initialize-schema: always
schema: classpath:org/springframework/batch/core/schema-h2.sql

web:
resources:
Expand Down

0 comments on commit b0c4567

Please sign in to comment.