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 | 31 |
Tags
- database
- Java
- JavaScript
- BPMN
- gradle
- docker
- mybatis
- JPA
- Git
- nginx
- nodejs
- NCP
- dbeaver
- Spring
- useEffect
- Kubernetes
- kubectl
- IntelliJ
- springboot
- gson
- tibero
- wildfly
- LOG4J
- MySQL
- VSCode
- intellijIDEA
- react
- Windows
- log4j2
- jetbrains
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