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