dev #90
@ -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();
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user