hubin 7 лет назад
Родитель
Сommit
9a70525a00

+ 1 - 1
build.gradle

@@ -7,7 +7,7 @@ ext {
         mybatisSpringVersion = '1.3.2',
         mybatisVersion = '3.4.6',
         springVersion = '4.3.5.RELEASE',
-        springBootVersion = '2.0.1.RELEASE',
+        springBootVersion = '1.5.12.RELEASE',
     ]
 
     dependencies = [

+ 2 - 3
mybatis-plus-core/src/main/java/com/baomidou/mybatisplus/core/metadata/TableFieldInfo.java

@@ -118,10 +118,9 @@ public class TableFieldInfo {
         }
         this.el = el;
         /*
-         * 优先使用单个字段注解,否则使用全局配置<br>
-         * 自定义字段验证策略 fixed-239
+         * 优先使用单个字段注解,否则使用全局配置
          */
-        if (FieldStrategy.NOT_NULL != tableField.strategy()) {
+        if (globalConfig.getFieldStrategy() != tableField.strategy()) {
             this.fieldStrategy = tableField.strategy();
         } else {
             this.fieldStrategy = globalConfig.getFieldStrategy();