Spring Batch tables are not automatically created with multiple datasources using Spring Boot #4612
-
I've read spring-projects/spring-boot#33526 and am using spring:
batch:
job:
# Don't run job on application startup
enabled: false
jdbc:
initialize-schema: always I've got multiple datasources and one is marked as There's no error message so I don't know to debug it. How can I find out, what I'm missing? |
Beta Was this translation helpful? Give feedback.
Answered by
fmbenhassine
Sep 11, 2024
Replies: 2 comments 3 replies
-
Have you annotated the datasource to use for Spring Batch with |
Beta Was this translation helpful? Give feedback.
2 replies
-
Do not add @EnableBatchProcessiong Annotation when you have disabled job on startup. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
From the Javadocs, I understand that this annotation should be used if there is another datasource marked as primary, which is your case IIUC.