@Bean
    protected BootstrapDataPopulator bootstrapDataPopulator(DataSource dataSource) {
        BootstrapDataPopulator populator = new BootstrapDataPopulator();
        populator.setDataSource(dataSource);
        return populator;
    }
Populates the sample database with sample users and roles.

@param dataSource
@return
samples/spring-mvc/src/main/java/org/apache/shiro/samples/spring/config/ApplicationConfig.java