From 691dee7a71996cd99fdfe30bd61b2da95cc88ecd Mon Sep 17 00:00:00 2001 From: ANDRU-PC\Andru <769883346@qq.com> Date: 星期一, 18 九月 2023 16:04:51 +0800 Subject: [PATCH] 添加工具类方法 --- src/main/java/com/hx/util/StringUtils.java | 11 +++++++++++ 1 files changed, 11 insertions(+), 0 deletions(-) diff --git a/src/main/java/com/hx/util/StringUtils.java b/src/main/java/com/hx/util/StringUtils.java index 78d4e36..76e38a8 100644 --- a/src/main/java/com/hx/util/StringUtils.java +++ b/src/main/java/com/hx/util/StringUtils.java @@ -358,4 +358,15 @@ return oriStr; } + /** + * 鍘婚櫎绌烘牸 + * @param info 淇℃伅 + * @return 杩斿洖 + */ + public static String trimBlank(String info){ + if (null != info){ + return info.trim(); + } + return null; + } } -- Gitblit v1.8.0