fixed startup
This commit is contained in:
parent
5cfdce8a7e
commit
40594ae88b
1 changed files with 6 additions and 1 deletions
|
@ -53,7 +53,12 @@ public class BatisConfig {
|
||||||
public SqlSessionFactory sqlSessionFactory(final DataSource dataSource) throws Exception {
|
public SqlSessionFactory sqlSessionFactory(final DataSource dataSource) throws Exception {
|
||||||
final SqlSessionFactoryBean factoryBean = new SqlSessionFactoryBean();
|
final SqlSessionFactoryBean factoryBean = new SqlSessionFactoryBean();
|
||||||
factoryBean.setDataSource(dataSource);
|
factoryBean.setDataSource(dataSource);
|
||||||
return factoryBean.getObject();
|
final SqlSessionFactory factory = factoryBean.getObject();
|
||||||
|
|
||||||
|
factory.getConfiguration()
|
||||||
|
.addMappers("ch.ethz.seb.sebserver.webservice.datalayer.batis");
|
||||||
|
|
||||||
|
return factory;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** SQL session template bean of MyBatis */
|
/** SQL session template bean of MyBatis */
|
||||||
|
|
Loading…
Reference in a new issue