code: @Override
      protected void checkDaoConfig() {
          super.checkDaoConfig();
  
          notNull(this.mapperInterface, "Property 'mapperInterface' is required");
  
          Configuration configuration = getSqlSession().getConfiguration();
          if (this.addToConfig && !configuration.hasMapper(this.mapperInterface)) {
              try {
                  configuration.addMapper(this.mapperInterface);
              } catch (Exception e) {
                  logger.error("Error while adding the mapper '" + this.mapperInterface + "' to configuration.", e);
                  throw new IllegalArgumentException(e);
              } finally {
                  ErrorContext.instance().reset();
              }
          }
          //直接针对接口处理通用接口方法对应的 MappedStatement 是安全的，通用方法不会出现 IncompleteElementException 的情况
          if (configuration.hasMapper(this.mapperInterface) && mapperHelper != null && mapperHelper.isExtendCommonMapper(this.mapperInterface)) {
              mapperHelper.processConfiguration(getSqlSession().getConfiguration(), this.mapperInterface);
          }
      }
docs: {@inheritDoc}