@@ -354,8 +354,8 @@ protected SqlSessionFactory buildSqlSessionFactory() throws IOException {
354
354
xmlConfigBuilder = new XMLConfigBuilder (this .configLocation .getInputStream (), null , this .configurationProperties );
355
355
configuration = xmlConfigBuilder .getConfiguration ();
356
356
} else {
357
- if (this . logger .isDebugEnabled ()) {
358
- this . logger .debug ("Property 'configLocation' not specified, using default MyBatis Configuration" );
357
+ if (logger .isDebugEnabled ()) {
358
+ logger .debug ("Property 'configLocation' not specified, using default MyBatis Configuration" );
359
359
}
360
360
configuration = new Configuration ();
361
361
configuration .setVariables (this .configurationProperties );
@@ -375,26 +375,26 @@ protected SqlSessionFactory buildSqlSessionFactory() throws IOException {
375
375
for (String packageToScan : typeAliasPackageArray ) {
376
376
configuration .getTypeAliasRegistry ().registerAliases (packageToScan ,
377
377
typeAliasesSuperType == null ? Object .class : typeAliasesSuperType );
378
- if (this . logger .isDebugEnabled ()) {
379
- this . logger .debug ("Scanned package: '" + packageToScan + "' for aliases" );
378
+ if (logger .isDebugEnabled ()) {
379
+ logger .debug ("Scanned package: '" + packageToScan + "' for aliases" );
380
380
}
381
381
}
382
382
}
383
383
384
384
if (!isEmpty (this .typeAliases )) {
385
385
for (Class <?> typeAlias : this .typeAliases ) {
386
386
configuration .getTypeAliasRegistry ().registerAlias (typeAlias );
387
- if (this . logger .isDebugEnabled ()) {
388
- this . logger .debug ("Registered type alias: '" + typeAlias + "'" );
387
+ if (logger .isDebugEnabled ()) {
388
+ logger .debug ("Registered type alias: '" + typeAlias + "'" );
389
389
}
390
390
}
391
391
}
392
392
393
393
if (!isEmpty (this .plugins )) {
394
394
for (Interceptor plugin : this .plugins ) {
395
395
configuration .addInterceptor (plugin );
396
- if (this . logger .isDebugEnabled ()) {
397
- this . logger .debug ("Registered plugin: '" + plugin + "'" );
396
+ if (logger .isDebugEnabled ()) {
397
+ logger .debug ("Registered plugin: '" + plugin + "'" );
398
398
}
399
399
}
400
400
}
@@ -404,17 +404,17 @@ protected SqlSessionFactory buildSqlSessionFactory() throws IOException {
404
404
ConfigurableApplicationContext .CONFIG_LOCATION_DELIMITERS );
405
405
for (String packageToScan : typeHandlersPackageArray ) {
406
406
configuration .getTypeHandlerRegistry ().register (packageToScan );
407
- if (this . logger .isDebugEnabled ()) {
408
- this . logger .debug ("Scanned package: '" + packageToScan + "' for type handlers" );
407
+ if (logger .isDebugEnabled ()) {
408
+ logger .debug ("Scanned package: '" + packageToScan + "' for type handlers" );
409
409
}
410
410
}
411
411
}
412
412
413
413
if (!isEmpty (this .typeHandlers )) {
414
414
for (TypeHandler <?> typeHandler : this .typeHandlers ) {
415
415
configuration .getTypeHandlerRegistry ().register (typeHandler );
416
- if (this . logger .isDebugEnabled ()) {
417
- this . logger .debug ("Registered type handler: '" + typeHandler + "'" );
416
+ if (logger .isDebugEnabled ()) {
417
+ logger .debug ("Registered type handler: '" + typeHandler + "'" );
418
418
}
419
419
}
420
420
}
@@ -423,8 +423,8 @@ protected SqlSessionFactory buildSqlSessionFactory() throws IOException {
423
423
try {
424
424
xmlConfigBuilder .parse ();
425
425
426
- if (this . logger .isDebugEnabled ()) {
427
- this . logger .debug ("Parsed configuration file: '" + this .configLocation + "'" );
426
+ if (logger .isDebugEnabled ()) {
427
+ logger .debug ("Parsed configuration file: '" + this .configLocation + "'" );
428
428
}
429
429
} catch (Exception ex ) {
430
430
throw new NestedIOException ("Failed to parse config resource: " + this .configLocation , ex );
@@ -464,13 +464,13 @@ protected SqlSessionFactory buildSqlSessionFactory() throws IOException {
464
464
ErrorContext .instance ().reset ();
465
465
}
466
466
467
- if (this . logger .isDebugEnabled ()) {
468
- this . logger .debug ("Parsed mapper file: '" + mapperLocation + "'" );
467
+ if (logger .isDebugEnabled ()) {
468
+ logger .debug ("Parsed mapper file: '" + mapperLocation + "'" );
469
469
}
470
470
}
471
471
} else {
472
- if (this . logger .isDebugEnabled ()) {
473
- this . logger .debug ("Property 'mapperLocations' was not specified or no matching resources found" );
472
+ if (logger .isDebugEnabled ()) {
473
+ logger .debug ("Property 'mapperLocations' was not specified or no matching resources found" );
474
474
}
475
475
}
476
476
0 commit comments