26 Mayıs 2022 Perşembe

SpringBatch application.properties Ayarları

Örnek
Şöyle yaparız
spring.batch.job.enabled=false
Örnek
Şöyle yaparız
spring.batch.initialize-schema=ALWAYS
Açıklaması şöyle
If we don't use this property and start the application, the application will complain Table batch_job_instance doesn't exist.

To avoid this error, we are basically telling to create batch job-related metadata during startup. This property will create additional database tables in your database like batch_job_execution, batch_job_execution_context, batch_job_execution_params, batch_job_instance etc.

Hiç yorum yok:

Yorum Gönder