随笔分类 - general--util
一般的常用的util
摘要:import lombok.extern.slf4j.Slf4j;import org.apache.poi.hssf.usermodel.*;import org.apache.poi.hssf.util.HSSFColor;import org.apache.poi.ss.util.CellRa
阅读全文
摘要:1.集合中含有字符串排序 >须将字符串字段转为Integer类型排序 2.方式一:集合排序 集合.sort(Comparator.comparing(集合中的对象::getCancelFansCount)) 倒序:Collections.reverse(list); 方式二: 集合= 集合.stre
阅读全文
摘要:方式一:0% NumberFormat percent = NumberFormat.getOercentInstance(); //设置精确到几位小数 percent.setMaximumFractionDigits(1); 方式二:0.00% DecimalFormat df = new Dec
阅读全文
摘要:1.idea中设置自动生成序列id setting-->Inspections-->Serialization issues --> 选中 Serializable class without 'serialVersionUID' 2.idea中配置文件乱码 编码一般都修改为utf-8(settin
阅读全文

浙公网安备 33010602011771号