随笔分类 -  常用工具

摘要:let re =/^(\d{4})-(\d{2})-(\d{2})$/; let str = "2022-06-22"; if (re.test(str) { console.log("验证成功!") } 阅读全文
posted @ 2022-06-22 10:19 scwyfy 阅读(311) 评论(0) 推荐(0)
摘要:package net.jwt.utils; import io.jsonwebtoken.*; import net.jwt.domain.User; import java.util.Date; public class JwtUtil { private static final String 阅读全文
posted @ 2022-04-11 21:17 scwyfy 阅读(141) 评论(0) 推荐(0)
摘要:public static String pdfToBase64() { InputStream is = null; ByteArrayOutputStream os = null; String dUrlData=""; byte[] buff = new byte[1024]; int len 阅读全文
posted @ 2020-12-15 09:32 scwyfy 阅读(3596) 评论(0) 推荐(1)
摘要:添加依赖: <dependency> <groupId>org.apache.axis</groupId> <artifactId>axis</artifactId> <version>1.4</version> </dependency> <dependency> <groupId>javax.x 阅读全文
posted @ 2020-12-03 16:28 scwyfy 阅读(1221) 评论(0) 推荐(0)