@Bean(name = "dataSource", destroyMethod = "close")
	public BasicDataSource dataSource() {
		BasicDataSource dataSource = new BasicDataSource();
		PropertiesWrapper databaseProperties = config.getDatabaseProperties();
		Database database = Database.getDatabase(databaseProperties.getProperty(PROP_DATABASE_TYPE));
		database.setup(dataSource, databaseProperties);
		return dataSource;
	}
Create the dataSource based on the database configuration.

@return dataSource
ngrinder-controller/src/main/java/org/ngrinder/infra/config/DatabaseConfig.java