Package com.bytedesk.kbase.config
Class BatchConfig
java.lang.Object
com.bytedesk.kbase.config.BatchConfig
@Configuration
@EnableBatchProcessing
@Description("Batch Processing Configuration - Spring Batch configuration for knowledge base data processing")
public class BatchConfig
extends Object
Spring Batch配置类
用于配置Spring Batch所需的基本组件
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate Stringprivate DataSourceprivate org.springframework.core.env.Environmentprivate org.springframework.transaction.PlatformTransactionManager -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.batch.core.repository.JobRepository自定义 JobRepository,解决 KingbaseES 无法被 Spring Batch 自动识别的问题。
-
Field Details
-
dataSource
-
transactionManager
@Autowired private org.springframework.transaction.PlatformTransactionManager transactionManager -
environment
@Autowired private org.springframework.core.env.Environment environment -
configuredDatabaseType
-
-
Constructor Details
-
BatchConfig
public BatchConfig()
-
-
Method Details