목차

Springframework JDBC

Stored Procedure

NamedParameterJdbcTemplate

RowMapper

BeanPropertyRowMapper

var rowMapper = BeanPropertyRowMapper.newInstance(Country.class);

DatabasePopulator

ResourceDatabasePopulator populator=new ResourceDatabasePopulator();
populator.setScripts(new Resource[]{new ClassPathResource(SQL_FILE)});
 
// populator.initialize()를 호출해도 됨.
DatabasePopulatorUtils.execute(populator,dataSource);

DataSourceInitializer