Skip to content

Commit

Permalink
解决启动失败问题
Browse files Browse the repository at this point in the history
  • Loading branch information
arc0035 committed Aug 18, 2022
1 parent f2c080f commit 1c1d620
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,10 @@ public class MybatisConfig {
public SqlSessionFactory sqlSessionFactory() throws Exception {
SqlSessionFactoryBean sessionFactory = new SqlSessionFactoryBean();
sessionFactory.setDataSource(dataSource);
sessionFactory.setTypeAliasesPackage("com.webank.blockchain.data.stash.db.model");
// sessionFactory.setTypeAliasesPackage("com.webank.blockchain.data.stash.db.model");

PathMatchingResourcePatternResolver resolver = new PathMatchingResourcePatternResolver();
sessionFactory.setMapperLocations(resolver.getResources("classpath*:**/sqlmap/*.xml"));
sessionFactory.setMapperLocations(resolver.getResources("classpath*:sqlmap/*.xml"));
return sessionFactory.getObject();
}

Expand Down

0 comments on commit 1c1d620

Please sign in to comment.