Bläddra i källkod

支持 mariadb 去掉多个方法对象静态初始化减少启动内存消耗

hubin 7 år sedan
förälder
incheckning
321f9a8cf6

+ 4 - 4
mybatis-plus-extension/src/main/java/com/baomidou/mybatisplus/extension/plugins/pagination/DialectFactory.java

@@ -123,10 +123,10 @@ public class DialectFactory {
                 dialect = getDialectByDbType(dbType);
                 dialectCache.put(dbType.getDb(), dialect);
             }
-        }
-        /* 未配置方言则抛出异常 */
-        if (dialect == null) {
-            throw new MybatisPlusException("The value of the dialect property in mybatis configuration.xml is not defined.");
+            /* 未配置方言则抛出异常 */
+            if (dialect == null) {
+                throw new MybatisPlusException("The value of the dialect property in mybatis configuration.xml is not defined.");
+            }
         }
         return dialect;
     }