我从here下载了spring-social-showcase。在spring-social-showcase项目中,有一个文件MainConfig.java,其中包含以下数据库populator代码:
private DatabasePopulator databasePopulator() {
ResourceDatabasePopulator populator = new ResourceDatabasePopulator();
populator.addScript(new ClassPathResource("JdbcUsersConnectionRepository.sql", JdbcUsersConnectionRepository.class));
populator.addScript(new ClassPathResource("Account.sql", JdbcAccountRepository.class));
populator.addScript(new ClassPathResource("data.sql", JdbcAccountRepository.class));
return populator;
}
它提到了3个sql文件“JdbcUsersConnectionRepository.sql”,“Account.sql”和“data.sql”。我找到了除JdbcUsersConnectionRepository.sql之外的两个。 任何线索在哪里是“JdbcUsersConnectionRepository.sql”?