apache工具
hqmln
这个作者很懒,什么都没留下…
展开
-
Apache Commons Configuration使用
Commons Configuration的主要功能: Configuration parameters may be loaded from the following sources:Properties files XML documents Windows INI files Property list files (plist) JNDI JDBC Datasource Syste...原创 2013-04-26 14:14:07 · 88 阅读 · 0 评论 -
StopWath
StopWath是apache commons lang包下的一个任务执行时间监视器 主要方法: start(); //开始计时 split(); //设置split点 getSplitTime(); //获取从start 到 最后一次split的时间 reset(); //重置计时 suspend(); //暂停计时, 直到调...原创 2017-07-13 13:47:45 · 67 阅读 · 0 评论 -
RandomStringUtils生成随机数
org.apache.commons.lang包中有一个随机数工具类RandomStringUtils,它是根据指定的字符串数组生成给定长度的随机数的工具类。该累包含较多的方法,所有方法返回的都是随机数字符串。每个方法至少提供一个参数 int count,这个参数表示要生成的随机数的长度。//产生5位长度的随机字符串,中文环境下是乱码RandomStringUtils.random(5);//使用...原创 2017-07-14 10:57:25 · 620 阅读 · 0 评论