Notice
Recent Posts
Recent Comments
Link
| 일 | 월 | 화 | 수 | 목 | 금 | 토 |
|---|---|---|---|---|---|---|
| 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 |
Tags
- nginx
- springboot
- gson
- SAP
- Spring
- nodejs
- gradle
- database
- VSCode
- tibero
- LOG4J
- log4j2
- sapfiorielements
- JPA
- Windows
- maven
- IntelliJ
- JavaScript
- Java
- react
- docker
- useEffect
- Git
- Linux
- NCP
- BPMN
- dbeaver
- mybatis
- Kubernetes
- MySQL
Archives
- Today
- Total
두 손끝의 창조자
데이터 소스의 데이터 초기화 본문
public DataSourceInitializer tenantIndependentInitializer() {
ResourceDatabasePopulator resourceDatabasePopulator = new ResourceDatabasePopulator();
resourceDatabasePopulator.addScript(new ClassPathResource("schema.sql"));
DataSourceInitializer dataSourceInitializer = new DataSourceInitializer();
dataSourceInitializer.setDataSource(tenantIndependentDataSource());
dataSourceInitializer.setDatabasePopulator(resourceDatabasePopulator);
return dataSourceInitializer;
}
반응형
Comments