Преглед изворни кода

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

wuweihao пре 3 година
родитељ
комит
1983edd334
1 измењених фајлова са 2 додато и 2 уклоњено
  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);
         }