完成操作日志的存储

This commit is contained in:
YunaiV
2021-01-17 01:21:54 +08:00
parent ec8f181f2f
commit 30076f6472
7 changed files with 82 additions and 30 deletions

View File

@@ -0,0 +1,16 @@
package cn.iocoder.dashboard.util.string;
import cn.hutool.core.util.StrUtil;
/**
* 字符串工具类
*
* @author 芋道源码
*/
public class StrUtils {
public static String maxLength(CharSequence str, int maxLength) {
return StrUtil.maxLength(str, maxLength - 3); // -3 的原因,是该方法会补充 ... 恰好
}
}