|
@@ -49,7 +49,6 @@ import org.springframework.context.ApplicationEvent;
|
|
|
import org.springframework.context.ApplicationListener;
|
|
|
import org.springframework.context.ConfigurableApplicationContext;
|
|
|
import org.springframework.context.event.ContextRefreshedEvent;
|
|
|
-import org.springframework.core.NestedIOException;
|
|
|
import org.springframework.core.io.Resource;
|
|
|
import org.springframework.core.io.support.PathMatchingResourcePatternResolver;
|
|
|
import org.springframework.core.io.support.ResourcePatternResolver;
|
|
@@ -539,7 +538,7 @@ public class MybatisSqlSessionFactoryBean implements FactoryBean<SqlSessionFacto
|
|
|
try {
|
|
|
targetConfiguration.setDatabaseId(this.databaseIdProvider.getDatabaseId(this.dataSource));
|
|
|
} catch (SQLException e) {
|
|
|
- throw new NestedIOException("Failed getting a databaseId", e);
|
|
|
+ throw new IOException("Failed getting a databaseId", e);
|
|
|
}
|
|
|
}
|
|
|
|
|
@@ -550,7 +549,7 @@ public class MybatisSqlSessionFactoryBean implements FactoryBean<SqlSessionFacto
|
|
|
xmlConfigBuilder.parse();
|
|
|
LOGGER.debug(() -> "Parsed configuration file: '" + this.configLocation + "'");
|
|
|
} catch (Exception ex) {
|
|
|
- throw new NestedIOException("Failed to parse config resource: " + this.configLocation, ex);
|
|
|
+ throw new IOException("Failed to parse config resource: " + this.configLocation, ex);
|
|
|
} finally {
|
|
|
ErrorContext.instance().reset();
|
|
|
}
|
|
@@ -573,7 +572,7 @@ public class MybatisSqlSessionFactoryBean implements FactoryBean<SqlSessionFacto
|
|
|
targetConfiguration, mapperLocation.toString(), targetConfiguration.getSqlFragments());
|
|
|
xmlMapperBuilder.parse();
|
|
|
} catch (Exception e) {
|
|
|
- throw new NestedIOException("Failed to parse mapping resource: '" + mapperLocation + "'", e);
|
|
|
+ throw new IOException("Failed to parse mapping resource: '" + mapperLocation + "'", e);
|
|
|
} finally {
|
|
|
ErrorContext.instance().reset();
|
|
|
}
|