摘要: -- 将varchar类型的字段改为Clob类型 -- 修改USER表格a字段类型,a之前为varchar(255),改为Clob -- 1、首先对要操作的表添加一个新的column,类型为clob alter table USER add nametwo clob; --2、然后将要修改的源字段的 阅读全文
posted @ 2021-08-25 14:31 游走人间的蒲公英 阅读(1686) 评论(0) 推荐(0) 编辑
摘要: -- 修改USER表格a字段长度,a之前为NUMBER(10),改为NUMBER(20) -- 1、首先对要操作的表添加一个新的column,类型为NUMBER alter table USER add nametwo NUMBER(20); --2、然后将要修改的源字段的数据赋给新建的字段 upd 阅读全文
posted @ 2021-08-25 14:29 游走人间的蒲公英 阅读(1279) 评论(0) 推荐(0) 编辑
摘要: http请求util import org.springframework.core.io.FileSystemResource;import org.springframework.core.io.InputStreamSource;import org.springframework.http. 阅读全文
posted @ 2021-08-11 13:52 游走人间的蒲公英 阅读(156) 评论(0) 推荐(0) 编辑
摘要: 读取excel文件后,将一行数据封装成一个对象,多行返回一个map对象即可 /** * 读取excel文件后,将一行数据封装成一个对象,多行返回一个map对象即可 * @param path 输出的文件路径 * @return */public static Map<Integer,List<Str 阅读全文
posted @ 2021-08-11 13:43 游走人间的蒲公英 阅读(526) 评论(0) 推荐(0) 编辑
摘要: 导出Excel util /** * 导出Excel * @param sheetName sheet名称 * @param title 标题 * @param values 内容 * @param wb HSSFWorkbook对象 * @return */public static HSSFWo 阅读全文
posted @ 2021-08-10 17:05 游走人间的蒲公英 阅读(60) 评论(0) 推荐(0) 编辑
摘要: UTF-8编码转换为ISO-9959-1 public static String utf8ToIso88591(String str) { if (str == null) { return str; } try { return new String(str.getBytes("UTF-8"), 阅读全文
posted @ 2021-08-10 16:29 游走人间的蒲公英 阅读(253) 评论(0) 推荐(0) 编辑
摘要: 时间毫秒值转换为时间字符串 /** * 时间毫秒值转换为时间字符串 * @param format 时间格式 * @param timestamp 时间毫秒值 * @return */public static String stampToTime(String format, long times 阅读全文
posted @ 2021-08-10 16:25 游走人间的蒲公英 阅读(334) 评论(0) 推荐(0) 编辑
摘要: 字符串时间转换成毫秒值 /** * 时间转换毫秒值 * @param format 时间格式 * @param time 时间 * @return */public static long timeToStamp(String format, String time) { SimpleDateFor 阅读全文
posted @ 2021-08-10 16:23 游走人间的蒲公英 阅读(758) 评论(0) 推荐(0) 编辑
摘要: /** * 时间加减月数 * @param startDate 要处理的时间,Null则为当前时间 * @param months 加减的月数 * @return Date */public static Date dateAddMonths(Date startDate, int months) 阅读全文
posted @ 2021-08-10 16:04 游走人间的蒲公英 阅读(65) 评论(0) 推荐(0) 编辑
摘要: 时间加减天数 public static Date dateAddDays(Date startDate, int days) { if (startDate == null) { startDate = new Date(); } Calendar c = Calendar.getInstance 阅读全文
posted @ 2021-08-10 16:02 游走人间的蒲公英 阅读(84) 评论(0) 推荐(0) 编辑