1+ /**
2+ * Copyright (C) 2019 the original author or authors.
3+ *
4+ * Licensed under the Apache License, Version 2.0 (the "License");
5+ * you may not use this file except in compliance with the License.
6+ * You may obtain a copy of the License at
7+ *
8+ * http://www.apache.org/licenses/LICENSE-2.0
9+ *
10+ * Unless required by applicable law or agreed to in writing, software
11+ * distributed under the License is distributed on an "AS IS" BASIS,
12+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+ * See the License for the specific language governing permissions and
14+ * limitations under the License.
15+ */
116package com .viiyue .plugins .mybatis .spring ;
217
318import static org .springframework .util .Assert .notNull ;
7691 * @author tangxbai
7792 * @since mybatis-spring 2.0.3
7893 * @since mybatis-mapper 1.3.0
94+ * @since mybatis-mapper-spring 1.3.0
7995 *
8096 * @see SqlSessionFactoryBean
8197 */
@@ -399,18 +415,29 @@ public void setDefaultScriptingLanguageDriver( Class<? extends LanguageDriver> d
399415 * Whether to enable log printing
400416 *
401417 * @param enableLogger whether to print the log
402- * @since mybatis-mapper 1.2 .0
418+ * @since mybatis-mapper-spring 1.3 .0
403419 */
404420 public void setEnableLogger ( boolean enableLogger ) {
405421 initConfigurationProperties ();
406422 this .configurationProperties .put ( "enableLogger" , enableLogger );
407423 }
408424
425+ /**
426+ * Whether to enable mapper scan log
427+ *
428+ * @param enableMapperScanLog whether to enable mapper scan log
429+ * @since mybatis-mapper-spring 1.3.0
430+ */
431+ public void setEnableMapperScanLog ( boolean enableMapperScanLog ) {
432+ initConfigurationProperties ();
433+ this .configurationProperties .put ( "enableMapperScanLog" , enableMapperScanLog );
434+ }
435+
409436 /**
410437 * Whether to enable runtime logs
411438 *
412439 * @param enableCompilationLog whether to enable runtime logs
413- * @since mybatis-mapper 1.2 .0
440+ * @since mybatis-mapper-spring 1.3 .0
414441 */
415442 public void setEnableRuntimeLog ( boolean enableRuntimeLog ) {
416443 initConfigurationProperties ();
@@ -421,7 +448,7 @@ public void setEnableRuntimeLog( boolean enableRuntimeLog ) {
421448 * Whether to enable compilation log
422449 *
423450 * @param enableCompilationLog whether to enable compilation log
424- * @since mybatis-mapper 1.2 .0
451+ * @since mybatis-mapper-spring 1.3 .0
425452 */
426453 public void setEnableCompilationLog ( boolean enableCompilationLog ) {
427454 initConfigurationProperties ();
@@ -432,7 +459,7 @@ public void setEnableCompilationLog( boolean enableCompilationLog ) {
432459 * Whether to enable keyword to uppercase configuration
433460 *
434461 * @param enableKeywordsToUppercase whether to convert to uppercase keywords
435- * @since mybatis-mapper 1.2 .0
462+ * @since mybatis-mapper-spring 1.3 .0
436463 */
437464 public void setEnableKeywordsToUppercase ( boolean enableKeywordsToUppercase ) {
438465 initConfigurationProperties ();
@@ -443,7 +470,7 @@ public void setEnableKeywordsToUppercase( boolean enableKeywordsToUppercase ) {
443470 * Set the database column style
444471 *
445472 * @param databaseColumnStyle the database column style
446- * @since mybatis-mapper 1.2 .0
473+ * @since mybatis-mapper-spring 1.3 .0
447474 */
448475 public void setDatabaseColumnStyle ( String databaseColumnStyle ) {
449476 initConfigurationProperties ();
@@ -454,7 +481,7 @@ public void setDatabaseColumnStyle( String databaseColumnStyle ) {
454481 * Whether to enable xml syntax parsing
455482 *
456483 * @param enableXmlSyntaxParsing whether enable xml syntax parsing
457- * @since mybatis-mapper 1.2 .0
484+ * @since mybatis-mapper-spring 1.3 .0
458485 */
459486 public void setEnableXmlSyntaxParsing ( boolean enableXmlSyntaxParsing ) {
460487 initConfigurationProperties ();
@@ -639,7 +666,7 @@ public boolean isSingleton() {
639666 /**
640667 * Add mybatis-mapper plugin to refactor the basic functionality of mybatis
641668 *
642- * @since 1.2.0 of mybatis-mapper
669+ * @since mybatis-mapper-spring 1.3.0
643670 */
644671 @ Override
645672 public void onApplicationEvent ( ApplicationEvent event ) {
@@ -653,7 +680,7 @@ public void onApplicationEvent( ApplicationEvent event ) {
653680 /**
654681 * Mybatis-mapper auxiliary method
655682 *
656- * @since mybatis-mapper 1.2 .0
683+ * @since mybatis-mapper-spring 1.3 .0
657684 */
658685 private void initConfigurationProperties () {
659686 if ( configurationProperties == null ) {
0 commit comments