Skip to content

Commit 6f378dc

Browse files
committed
Merge pull request #121 from kazuki43zoo/improve-vfs-1.2.x
Modify to use a custom VFS when scanning type aliases on SqlSessionFactoryBean
2 parents 2e4b1cc + 3a6b7ad commit 6f378dc

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/main/java/org/mybatis/spring/SqlSessionFactoryBean.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -388,6 +388,10 @@ protected SqlSessionFactory buildSqlSessionFactory() throws IOException {
388388
configuration.setObjectWrapperFactory(this.objectWrapperFactory);
389389
}
390390

391+
if (this.vfs != null) {
392+
configuration.setVfsImpl(this.vfs);
393+
}
394+
391395
if (hasLength(this.typeAliasesPackage)) {
392396
String[] typeAliasPackageArray = tokenizeToStringArray(this.typeAliasesPackage,
393397
ConfigurableApplicationContext.CONFIG_LOCATION_DELIMITERS);
@@ -446,10 +450,6 @@ protected SqlSessionFactory buildSqlSessionFactory() throws IOException {
446450
}
447451
}
448452

449-
if (this.vfs != null) {
450-
configuration.setVfsImpl(this.vfs);
451-
}
452-
453453
if (xmlConfigBuilder != null) {
454454
try {
455455
xmlConfigBuilder.parse();

0 commit comments

Comments
 (0)