05 2020 档案

摘要:char[] 数组转为byte[] 数组 public static byte[] getBytes(char[] chars) { Charset cs = Charset.forName("UTF-8"); CharBuffer cb = CharBuffer.allocate(chars.le 阅读全文
posted @ 2020-05-28 11:16 rearboal 阅读(9600) 评论(1) 推荐(0) 编辑
摘要:原文链接:https://www.cnblogs.com/xudong-bupt/p/3758136.html 1.Properties类与Properties配置文件 Properties类继承自Hashtable类并且实现了Map接口,也是使用一种键值对的形式来保存属性集。不过Propertie 阅读全文
posted @ 2020-05-27 13:49 rearboal 阅读(122) 评论(0) 推荐(0) 编辑
摘要:Java有个问题就是toArray()方法是Object[],所以总结了几种Object数组转成 String 数组的方法: 1、System.arraycopy把一个数组中某一段字节数据放到另一个数组中 //src:源数组;srcPos:源数组要复制的起始位置;dest:目的数组;destPos: 阅读全文
posted @ 2020-05-12 20:07 rearboal 阅读(9037) 评论(0) 推荐(1) 编辑
摘要:cron表达式 顺序 秒 分钟 小时 日期 月份 星期 年(可选) 取值 0-59 0-59 0-23 1-30(31) 1-12 1-7 允许特殊字符 , - * / , - * / , - * / , - * / ? L W C , - * / , - * / L # C 1970-2099 , 阅读全文
posted @ 2020-05-08 21:28 rearboal 阅读(2173) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示