Skip to content

Commit f903aef

Browse files
committed
catch Exception, not IOException
1 parent 9c366e9 commit f903aef

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ protected SqlSessionFactory buildSqlSessionFactory() throws IOException, Illegal
203203
try {
204204
xmlConfigBuilder = new XMLConfigBuilder(this.configLocation.getInputStream(), null, this.configurationProperties);
205205
configuration = xmlConfigBuilder.parse();
206-
} catch (IOException ex) {
206+
} catch (Exception ex) {
207207
throw new NestedIOException("Failed to parse config resource: "
208208
+ this.configLocation, ex);
209209
} finally {

0 commit comments

Comments
 (0)