Explorar el Código

限制富文本长度为1万个字符

wuweihao hace 3 años
padre
commit
1983edd334
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  1. 2 2
      gis_common/src/main/java/com/gis/common/util/StrUtils.java

+ 2 - 2
gis_common/src/main/java/com/gis/common/util/StrUtils.java

@@ -12,7 +12,7 @@ import lombok.extern.slf4j.Slf4j;
 public class StrUtils {
 
     /**
-     *
+     *  限制字符长度
      * @param content 内容
      * @param size 限制长度
      */
@@ -22,7 +22,7 @@ public class StrUtils {
         }
         int length = content.length();
         if (length > size){
-            String errorMsg = "字符长度超出范围";
+            String errorMsg = "字符长度超出范围";
             log.error(errorMsg+ ": {}", length);
             throw new BaseRuntimeException(MsgCode.e3002, errorMsg);
         }