Commit 0598e59e by 李传峰

feat:[none] mybatis支持多mapper映射扫描,英文分号分隔

parent 9ee2ed8f
...@@ -163,6 +163,7 @@ public class DataSourceConfig { ...@@ -163,6 +163,7 @@ public class DataSourceConfig {
resources = ArrayUtils.addAll(resources, patternResolver.getResources(m)); resources = ArrayUtils.addAll(resources, patternResolver.getResources(m));
} }
sessionFactoryBean.setMapperLocations(resources); sessionFactoryBean.setMapperLocations(resources);
logger.info("【DataSource】初始化SqlSessionFactory,mapperLocations={}", mapperLocations);
sessionFactoryBean.setVfs(SpringBootVFS.class); sessionFactoryBean.setVfs(SpringBootVFS.class);
sessionFactoryBean.setTypeAliasesPackage(typeAliasesPackage); sessionFactoryBean.setTypeAliasesPackage(typeAliasesPackage);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment