Use Spring-Batch without stress
Use Spring-Batch without stress
- TLDR;
--spring-batch has a function to manage job status, but it is an obstacle, so you can disable it with ʻapplication.yml`
--Write about other related settings
application.yml settings
- banner-mode: off
--Do not display banner when spring-boot starts (off, console, log can be set)
- initilization-schema: never
--Whether to initialize the batch job table when starting spring-batch
spring:
main:
banner-mode: off
batch:
initilization-schema: never
Annotation settings
--spring-batch tries to save the state of the job, but I don't need such a function.
--Refer to here and prevent the data source itself from being created
-How to use In-Memory Job repository in Spring Batch
@SpringBootApplication(exclude= {DataSourceAutoConfiguration.class})
reference
-How to use In-Memory Job repository in Spring Batch