update 使用hutool重构 判断是否url

This commit is contained in:
疯狂的狮子li
2021-07-12 14:29:49 +08:00
parent cd34c87afa
commit 8ddd71a818
4 changed files with 7 additions and 35 deletions

View File

@ -1,28 +0,0 @@
package com.ruoyi.common.utils;
import cn.hutool.core.util.StrUtil;
import com.ruoyi.common.constant.Constants;
/**
* 字符串工具类
*
* @author ruoyi
*/
public class StringUtils extends org.apache.commons.lang3.StringUtils {
/** 空字符串 */
private static final String NULLSTR = "";
/** 下划线 */
private static final char SEPARATOR = '_';
/**
* 是否为http(s)://开头
*
* @param link 链接
* @return 结果
*/
public static boolean ishttp(String link) {
return StrUtil.startWithAny(link, Constants.HTTP, Constants.HTTPS);
}
}