DruidDataSource support initExceptionThrow config.

This commit is contained in:
wenshao
2018-08-22 17:29:26 +08:00
parent c593c0e90d
commit a40071a3cb
3 changed files with 53 additions and 1 deletions
@@ -887,7 +887,7 @@ public class DruidDataSource extends DruidAbstractDataSource implements DruidDat
initedTime = new Date();
registerMbean();
if (connectError != null && poolingCount == 0) {
if (connectError != null && poolingCount == 0 && !(initExceptionThrow && !asyncInit)) {
throw connectError;
}