Skip to content

Commit

Permalink
Merge pull request #575 from caochengxiang/master
Browse files Browse the repository at this point in the history
mybatis
  • Loading branch information
caochengxiang authored Aug 7, 2023
2 parents 78cc1af + 52716a2 commit b65c0c7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion jcommon/docean-plugin/docean-plugin-mybatis/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
</parent>
<modelVersion>4.0.0</modelVersion>
<artifactId>docean-plugin-mybatis</artifactId>
<version>1.4.5-SNAPSHOT</version>
<version>1.4.6-SNAPSHOT</version>

<dependencies>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,9 @@ private void addDAO(Ioc ioc, String beanName, String mapperLocation, boolean one
}
SqlSessionFactory factory = bean.buildSqlSessionFactory();
ioc.putBean("mybatis_" + beanName + config.getName(), factory);
if (System.getenv("mybatis_mapper_annotation") != null) {
factory.getConfiguration().addMappers(System.getenv("mybatis_mapper_annotation"));
}
Collection<Class<?>> mappers = factory.getConfiguration().getMapperRegistry().getMappers();

List<String> mapperNameList = mappers.stream().map(it -> it.getName()).collect(Collectors.toList());
Expand Down

0 comments on commit b65c0c7

Please sign in to comment.