Merge pull request 'dev' (#90) from dev into dev-deploy
Reviewed-on: #90
This commit is contained in:
commit
7ce3cd56d7
@ -1,6 +1,8 @@
|
|||||||
package com.interplug.qcast.config.batch;
|
package com.interplug.qcast.config.batch;
|
||||||
|
|
||||||
import javax.sql.DataSource;
|
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.JobRepository;
|
||||||
import org.springframework.batch.core.repository.support.JobRepositoryFactoryBean;
|
import org.springframework.batch.core.repository.support.JobRepositoryFactoryBean;
|
||||||
import org.springframework.batch.support.DatabaseType;
|
import org.springframework.batch.support.DatabaseType;
|
||||||
@ -15,6 +17,7 @@ import org.springframework.transaction.PlatformTransactionManager;
|
|||||||
* Spring Batch Configuration for SQL Server without sequence support
|
* Spring Batch Configuration for SQL Server without sequence support
|
||||||
*/
|
*/
|
||||||
@Configuration
|
@Configuration
|
||||||
|
@EnableBatchProcessing(modular = false)
|
||||||
public class BatchConfiguration {
|
public class BatchConfiguration {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -34,8 +37,8 @@ public class BatchConfiguration {
|
|||||||
factory.setIsolationLevelForCreate("ISOLATION_SERIALIZABLE");
|
factory.setIsolationLevelForCreate("ISOLATION_SERIALIZABLE");
|
||||||
|
|
||||||
// SQL Server 데이터베이스 타입 설정
|
// SQL Server 데이터베이스 타입 설정
|
||||||
factory.setDatabaseType(DatabaseType.SQLSERVER.getProductName());
|
//factory.setDatabaseType(DatabaseType.SQLSERVER.getProductName());
|
||||||
|
factory.setDatabaseType("sqlserver");
|
||||||
factory.afterPropertiesSet();
|
factory.afterPropertiesSet();
|
||||||
return factory.getObject();
|
return factory.getObject();
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user