Skip to content

Commit 8c92989

Browse files
committed
Modify to use a custom VFS when scanning type aliases on SqlSessionFactoryBean
1 parent 75b3089 commit 8c92989

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
@@ -422,6 +422,10 @@ protected SqlSessionFactory buildSqlSessionFactory() throws IOException {
422422
configuration.setObjectWrapperFactory(this.objectWrapperFactory);
423423
}
424424

425+
if (this.vfs != null) {
426+
configuration.setVfsImpl(this.vfs);
427+
}
428+
425429
if (hasLength(this.typeAliasesPackage)) {
426430
String[] typeAliasPackageArray = tokenizeToStringArray(this.typeAliasesPackage,
427431
ConfigurableApplicationContext.CONFIG_LOCATION_DELIMITERS);
@@ -480,10 +484,6 @@ protected SqlSessionFactory buildSqlSessionFactory() throws IOException {
480484
}
481485
}
482486

483-
if (this.vfs != null) {
484-
configuration.setVfsImpl(this.vfs);
485-
}
486-
487487
if (this.cache != null) {
488488
configuration.addCache(this.cache);
489489
}

0 commit comments

Comments
 (0)