Skip to content

Commit 463f919

Browse files
authored
Merge pull request #2162 from liaojianbin/master
mybatis-config.xml parseConfiguration - The environment is already specified. Just break out of the loop
2 parents 7f570f9 + 1e4ef39 commit 463f919

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/main/java/org/apache/ibatis/builder/xml/XMLConfigBuilder.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -287,6 +287,7 @@ private void environmentsElement(XNode context) throws Exception {
287287
.transactionFactory(txFactory)
288288
.dataSource(dataSource);
289289
configuration.setEnvironment(environmentBuilder.build());
290+
break;
290291
}
291292
}
292293
}

0 commit comments

Comments
 (0)