|
@@ -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);
|
|
|
}
|