배치 2007 설정 수정

This commit is contained in:
cha 2025-06-17 13:34:27 +09:00
parent ed7e178ccb
commit 760b00e8a4

View File

@ -1,6 +1,8 @@
package com.interplug.qcast.config.batch;
import javax.sql.DataSource;
import org.springframework.batch.core.configuration.annotation.EnableBatchProcessing;
import org.springframework.batch.core.repository.JobRepository;
import org.springframework.batch.core.repository.support.JobRepositoryFactoryBean;
import org.springframework.batch.support.DatabaseType;
@ -15,6 +17,7 @@ import org.springframework.transaction.PlatformTransactionManager;
* Spring Batch Configuration for SQL Server without sequence support
*/
@Configuration
@EnableBatchProcessing(modular = false)
public class BatchConfiguration {
/**
@ -34,8 +37,8 @@ public class BatchConfiguration {
factory.setIsolationLevelForCreate("ISOLATION_SERIALIZABLE");
// SQL Server 데이터베이스 타입 설정
factory.setDatabaseType(DatabaseType.SQLSERVER.getProductName());
//factory.setDatabaseType(DatabaseType.SQLSERVER.getProductName());
factory.setDatabaseType("sqlserver");
factory.afterPropertiesSet();
return factory.getObject();
}