2023年1月3日

摘要: /** * 线程相关工具类. * * @author ruoyi */ public class Threads { private static final Logger logger = LoggerFactory.getLogger(Threads.class); /** * sleep等待, 阅读全文
posted @ 2023-01-03 16:03 一群bug 阅读(52) 评论(0) 推荐(0) 编辑
 
摘要: /** * 提供通用唯一识别码(universally unique identifier)(UUID)实现 * * @author ruoyi */ public final class UUID implements java.io.Serializable, Comparable<UUID> 阅读全文
posted @ 2023-01-03 16:02 一群bug 阅读(111) 评论(0) 推荐(0) 编辑
 
摘要: /** * 获取IP方法 * * @author ruoyi */ public class IpUtils { /** * 获取客户端IP * * @param request 请求对象 * @return IP地址 */ public static String getIpAddr(HttpSe 阅读全文
posted @ 2023-01-03 16:00 一群bug 阅读(176) 评论(0) 推荐(0) 编辑
 
摘要: /** * 获取地址类 * * @author ruoyi */ public class AddressUtils { private static final Logger log = LoggerFactory.getLogger(AddressUtils.class); // IP地址查询 阅读全文
posted @ 2023-01-03 15:59 一群bug 阅读(64) 评论(0) 推荐(0) 编辑
 
摘要: /** * 通用http发送方法 * * @author ruoyi */ public class HttpUtils { private static final Logger log = LoggerFactory.getLogger(HttpUtils.class); /** * 向指定 U 阅读全文
posted @ 2023-01-03 15:57 一群bug 阅读(175) 评论(0) 推荐(0) 编辑
 
摘要: /** * 文件上传工具类 * * @author ruoyi */ public class FileUploadUtils { /** * 默认大小 50M */ public static final long DEFAULT_MAX_SIZE = 50 * 1024 * 1024; /** 阅读全文
posted @ 2023-01-03 15:55 一群bug 阅读(1458) 评论(0) 推荐(0) 编辑
 
摘要: /** * 媒体类型工具类 * * @author ruoyi */ public class MimeTypeUtils { public static final String IMAGE_PNG = "image/png"; public static final String IMAGE_J 阅读全文
posted @ 2023-01-03 15:55 一群bug 阅读(188) 评论(0) 推荐(0) 编辑
 
摘要: /** * 操作消息提醒 * * @author ruoyi */ public class AjaxResult extends HashMap<String, Object> { private static final long serialVersionUID = 1L; /** 状态码 * 阅读全文
posted @ 2023-01-03 15:46 一群bug 阅读(474) 评论(0) 推荐(0) 编辑
 
摘要: /** * 返回状态码 * * @author ruoyi */ public class HttpStatus { /** * 操作成功 */ public static final int SUCCESS = 200; /** * 对象创建成功 */ public static final in 阅读全文
posted @ 2023-01-03 15:45 一群bug 阅读(90) 评论(0) 推荐(0) 编辑
 
摘要: /** * 工具类异常 * * @author ruoyi */ public class UtilException extends RuntimeException { private static final long serialVersionUID = 824761031917101418 阅读全文
posted @ 2023-01-03 15:44 一群bug 阅读(39) 评论(0) 推荐(0) 编辑
 
摘要: /** * 类型转换器 * * @author ruoyi */ public class Convert { /** * 转换为字符串<br> * 如果给定的值为null,或者转换失败,返回默认值<br> * 转换失败不会报错 * * @param value 被转换的值 * @param def 阅读全文
posted @ 2023-01-03 15:43 一群bug 阅读(50) 评论(0) 推荐(0) 编辑
 
摘要: /** * 通用常量信息 * * @author ruoyi */ public class Constants { /** * UTF-8 字符集 */ public static final String UTF8 = "UTF-8"; /** * GBK 字符集 */ public stati 阅读全文
posted @ 2023-01-03 15:42 一群bug 阅读(111) 评论(0) 推荐(0) 编辑
 
摘要: /** * 反射工具类. 提供调用getter/setter方法, 访问私有变量, 调用私有方法, 获取泛型类型Class, 被AOP过的真实类等工具函数. * * @author ruoyi */ @SuppressWarnings("rawtypes") public class Reflect 阅读全文
posted @ 2023-01-03 15:39 一群bug 阅读(449) 评论(0) 推荐(0) 编辑
 
摘要: /** * 文件类型工具类 * * @author ruoyi */ public class FileTypeUtils { /** * 获取文件类型 * <p> * 例如: ruoyi.txt, 返回: txt * * @param file 文件名 * @return 后缀(不含".") */ 阅读全文
posted @ 2023-01-03 15:36 一群bug 阅读(230) 评论(0) 推荐(0) 编辑
 
摘要: /** * 时间工具类 * * @author ruoyi */ public class DateUtils extends org.apache.commons.lang3.time.DateUtils { public static String YYYY = "yyyy"; public s 阅读全文
posted @ 2023-01-03 15:35 一群bug 阅读(82) 评论(0) 推荐(0) 编辑
 
摘要: <!-- io常用工具类 --> <dependency> <groupId>commons-io</groupId> <artifactId>commons-io</artifactId> <version>2.11.0</version> </dependency> <!-- excel工具 - 阅读全文
posted @ 2023-01-03 15:33 一群bug 阅读(1192) 评论(0) 推荐(1) 编辑