티스토리 뷰
티베로를 사용하면 스프링 배치를 사용하려해도 영 시원치 않다.
스프링 배치가 지원하는 표준 데이터 베이스가 아니기 때문에 아래 오류가 나타나느데..
비표준 데이터베이스를 등록하는 방법이다...
@EnableBatchProcessing
public class TiberoBatchConfigurer extends DefaultBatchConfigurer {
@Autowired
private DataSource dataSource;
@Autowired
private PlatformTransactionManager transactionManager;
public TiberoBatchConfigurer() {
super();
}
public TiberoBatchConfigurer(DataSource dataSource) {
super(dataSource);
}
@Override
protected JobRepository createJobRepository() throws Exception {
JobRepositoryFactoryBean factory = new JobRepositoryFactoryBean();
factory.setDataSource(dataSource);
factory.setDatabaseType("ORACLE");
factory.setTransactionManager(transactionManager);
factory.afterPropertiesSet();
return factory.getObject();
}
}
그냥 아래 stackoverflow를 보면 될 것 같다.
스프링 공식 문서도 첨부
참고
Spring Batch - Reference Documentation
If a group of Steps share similar configurations, then it may be helpful to define a “parent” Step from which the concrete Steps may inherit properties. Similar to class inheritance in Java, the “child” Step combines its elements and attributes wit
docs.spring.io
https://stackoverflow.com/questions/61266208/databasetype-not-found-for-product-name-tibero
DatabaseType not found for product name: [Tibero]
While trying to setup a Spring boot - spring batch project, I am running into an error stating: I have checked the spring batch supported database but Tibero is not in the list. Is there any othe...
stackoverflow.com
- Total
- Today
- Yesterday
- claude
- Linux
- mybatis config
- maven
- Mac
- jQuery
- Bash tab
- elasticsearch
- svn
- oracle
- k8s
- input
- Java
- Spring
- localtime
- 베리 심플
- 북리뷰
- Kotlin
- Spring Security
- 오라클
- intellij
- LocalDate
- JavaScript
- mybatis
- config-location
- LocalDateTime
- docker
- window
- rocky
- springboot
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | ||||
4 | 5 | 6 | 7 | 8 | 9 | 10 |
11 | 12 | 13 | 14 | 15 | 16 | 17 |
18 | 19 | 20 | 21 | 22 | 23 | 24 |
25 | 26 | 27 | 28 | 29 | 30 | 31 |