Compare commits

..

No commits in common. "7ce3cd56d769eedd8ee1705705c869d807979e0e" and "de5728dbeba8cc5eb602cbbe84ec7f83e010da27" have entirely different histories.

View File

@ -1,8 +1,6 @@
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;
@ -17,7 +15,6 @@ 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 {
/** /**
@ -37,8 +34,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();
} }