답변 4
0
0
spring:
profiles:
active: mysql
---
spring:
config:
activate:
on-profile: local
database:
hikari:
jdbc-url: jdbc:h2:mem:testdb;DB_CLOSE_DELAY=-1;DB_CLOSE_ON_EXIT=FALSE
username: sa
password:
driver-class-name: org.h2.Driver
batch:
jdbc:
initialize-schema: EMBEDDED
---
spring:
config:
activate:
on-profile: mysql
database:
hikari:
jdbc-url: jdbc:mysql://localhost:3306/springbatch?useUnicode=true&characterEncoding=utf8
username: root
password: pass
driver-class-name: com.mysql.cj.jdbc.Driver
batch:
jdbc:
initialize-schema: ALWAYS
위의 설정 파일에서 database => datasource 라고 고쳐 주세요
오타가 난 것 같습니다.
0
https://github.com/InSuChoe/springbatch