fixed startup

This commit is contained in:
anhefti 2019-08-23 13:00:37 +02:00
parent 5cfdce8a7e
commit 40594ae88b

View file

@ -53,7 +53,12 @@ public class BatisConfig {
public SqlSessionFactory sqlSessionFactory(final DataSource dataSource) throws Exception {
final SqlSessionFactoryBean factoryBean = new SqlSessionFactoryBean();
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 */