DataSource dataSourceToUse = this.dataSource;
if (this.useTransactionAwareDataSource && !(this.dataSource instanceof TransactionAwareDataSourceProxy)) {
dataSourceToUse = new TransactionAwareDataSourceProxy(this.dataSource);
}
conf.setEnvironment(new Environment("development",new ManagedTransactionFactory(),dataSourceToUse));
sqlSessionFactory = new SqlSessionFactoryBuilder().build(conf);
}
if(mapperLocations != null) {
Map<String, XNode> sqlFragments = new HashMap<String, XNode>();