use of org.springframework.r2dbc.connection.init.CompositeDatabasePopulator in project spring-security by spring-projects.
the class R2dbcReactiveOAuth2AuthorizedClientServiceTests method createDb.
private static ConnectionFactoryInitializer createDb(String schema) {
ConnectionFactoryInitializer initializer = new ConnectionFactoryInitializer();
CompositeDatabasePopulator populator = new CompositeDatabasePopulator();
populator.addPopulators(new ResourceDatabasePopulator(new ClassPathResource(schema)));
initializer.setDatabasePopulator(populator);
return initializer;
}
Aggregations