79428408

Date: 2025-02-10 22:04:49
Score: 1.5
Natty:
Report link

If your problem is not solved yet, please try the below changes. This works with Spring Boot-3, Spring Batch -5 and JDK 17.

  1. Spring batch: jdbc: initialize-schema: ALWAYS
  2. Remove @EnableBatchProcessing annotation
  3. Create a custom bean with ResourcelessJobRepository

@Configuration public class AvoidMetaDataConfiguration extends DefaultBatchConfiguration {

@NotNull
@Bean
public JobRepository jobRepository() {
    return new ResourcelessJobRepository();
}

}

Reasons:
  • Has code block (-0.5):
  • User mentioned (1): @EnableBatchProcessing
  • User mentioned (0): @Configuration
  • Low reputation (1):
Posted by: Trinanjana Das