@Bean(destroyMethod = "shutdown")
 public DataSource dataSource() {
   EmbeddedDatabaseFactory factory = new EmbeddedDatabaseFactory();
   factory.setDatabaseName("spring-social-showcase");
   factory.setDatabaseType(EmbeddedDatabaseType.H2);
   return factory.getDatabase();
 }
示例#2
0
 @Bean(destroyMethod = "shutdown")
 public DataSource dataSource() {
   EmbeddedDatabaseFactory factory = new EmbeddedDatabaseFactory();
   factory.setDatabaseName("greenhouse");
   factory.setDatabaseType(EmbeddedDatabaseType.H2);
   return populateDatabase(factory.getDatabase());
 }
示例#3
0
 @Bean(destroyMethod = "shutdown")
 public DataSource h2DataSource() {
   EmbeddedDatabaseFactory factory = new EmbeddedDatabaseFactory();
   factory.setDatabaseName("pilot");
   factory.setDatabaseType(EmbeddedDatabaseType.H2);
   factory.setDatabasePopulator(databasePopulator());
   return factory.getDatabase();
 }
 @Bean(destroyMethod = "shutdown")
 @Override
 public DataSource dataSource() {
   EmbeddedDatabaseFactory databaseFactory = new EmbeddedDatabaseFactory();
   databaseFactory.setDatabaseName("clients");
   databaseFactory.setDatabaseType(H2);
   return databaseFactory.getDatabase();
 }
 @Bean(destroyMethod = "shutdown")
 public DataSource dataSource() {
   EmbeddedDatabaseFactory factory = new EmbeddedDatabaseFactory();
   factory.setDatabaseName("fuzzydb-sample-webapp");
   factory.setDatabaseType(EmbeddedDatabaseType.H2);
   factory.setDatabasePopulator(databasePopulator());
   return factory.getDatabase();
 }