摘要: postmain 返回错误 { "code": 998, "msg": "Content type 'multipart/form-data;boundary 684116007958102492535001;charset=UTF-8' not supported", "data": "org.s 阅读全文
posted @ 2022-06-23 16:08 游走人间的蒲公英 阅读(2812) 评论(0) 推荐(0) 编辑
摘要: /** * 获取文件类型 * <p> * 例如: ruoyi.txt, 返回: txt * * @param file 文件名 * @return 后缀(不含".") */public static String getFileType(File file) { if (null == file) 阅读全文
posted @ 2021-11-17 09:42 游走人间的蒲公英 阅读(226) 评论(0) 推荐(0) 编辑
摘要: /** 修改序列 、第一步删除序列第二步创建序列**/ -- 删除序列DROP SEQUENCE S_SYS_ACCOUNT; -- 创建序列CREATE sequence S_SYS_ACCOUNTminvalue 1maxvalue 9999999999999999999999999999sta 阅读全文
posted @ 2021-11-16 15:49 游走人间的蒲公英 阅读(151) 评论(0) 推荐(0) 编辑
摘要: /** * 下划线转驼峰 */public static String lineToHump(String str) { str = str.toLowerCase(); Matcher matcher = linePattern.matcher(str); StringBuffer sb = ne 阅读全文
posted @ 2021-11-16 15:36 游走人间的蒲公英 阅读(48) 评论(0) 推荐(0) 编辑
摘要: /** * 驼峰转下划线 */public static String humpToLine(String str) { Matcher matcher = humpPattern.matcher(str); StringBuffer sb = new StringBuffer(); while ( 阅读全文
posted @ 2021-11-16 15:36 游走人间的蒲公英 阅读(36) 评论(0) 推荐(0) 编辑
摘要: /** * 格式化数字,保留制定长度,如果长度不足,则在前面加0 * @param number 要格式化的数字 * @param length 长度 * @return */public static String formatNumberByZero(String number,int leng 阅读全文
posted @ 2021-11-16 11:12 游走人间的蒲公英 阅读(53) 评论(0) 推荐(0) 编辑
摘要: /** * 格式化金额,保留两位小数,即精确到分 * @param balance 身份证 * @return */public static String formatBalance(String balance){ if(balance == null) { return null; } if( 阅读全文
posted @ 2021-11-16 11:11 游走人间的蒲公英 阅读(47) 评论(0) 推荐(0) 编辑
摘要: /** * 将身份证号转换为年龄 * @param idCard 身份证号 * @return 年龄字符串 */public static int idCard2Age(String idCard) { if (idCard == null) { return null; } if (idCard. 阅读全文
posted @ 2021-11-16 11:09 游走人间的蒲公英 阅读(379) 评论(0) 推荐(0) 编辑
摘要: /** * * @param base64Str * @param path * @return */public static File base642File(String base64Str, String path) { if (!StringUtils.isNotBlank(base64S 阅读全文
posted @ 2021-11-16 10:41 游走人间的蒲公英 阅读(122) 评论(0) 推荐(0) 编辑
摘要: /** * 生成随机字符串 * @param str 字符池 * @param length 随机字符串长度 * @return 生成的随机字符串 */public static String randomString(int length,String str) { //字符池 str = "0E 阅读全文
posted @ 2021-11-16 10:27 游走人间的蒲公英 阅读(27) 评论(0) 推荐(0) 编辑