会员
周边
新闻
博问
闪存
众包
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
life_start
博客园
首页
新随笔
联系
管理
订阅
上一页
1
···
5
6
7
8
9
10
11
12
13
下一页
2017年1月5日
28 Corn表达式详解 (转自http://blog.csdn.net/claram/article/details/51785193)
摘要: Cron表达式是一个字符串,字符串以5或6个空格隔开,分为6或7个域,每一个域代表一个含义,Cron有如下两种语法格式: Seconds Minutes Hours DayofMonth Month DayofWeek Year或 Seconds Minutes Hours DayofMonth M
阅读全文
posted @ 2017-01-05 14:05 life_start
阅读(178)
评论(0)
推荐(0)
2016年12月22日
28,intellij idea工程包含scala代码这样打包
摘要: clean scala:compile compile package
阅读全文
posted @ 2016-12-22 09:38 life_start
阅读(479)
评论(0)
推荐(0)
2016年12月19日
2 20个常用正则表达式
摘要: 1 . 校验密码强度 密码的强度必须是包含大小写字母和数字的组合,不能使用特殊字符,长度在8-10之间。 ^(?=.*\d)(?=.*[a-z])(?=.*[A-Z]).{8,10}$ 2. 校验中文 字符串仅能是中文。 ^[\u4e00-\u9fa5]{0,}$ 3. 由数字、26个英文字母或下划
阅读全文
posted @ 2016-12-19 15:59 life_start
阅读(775)
评论(0)
推荐(0)
2016年12月14日
27 Java动态加载第三方jar包中的类
摘要: 我加载的方法是://参数fileName是jar包的路径,processorName 是业务类的包名+类名public static A load(String fileName, String processorName) { String filePath = fileName; A proce
阅读全文
posted @ 2016-12-14 17:27 life_start
阅读(12146)
评论(0)
推荐(0)
26 查看文件内容有多少行?
摘要: public class Count { public static void main(String[] args) throws IOException { String filePath="F:\\testPbToJson1,F:\\testPbToJson2,F:\\testPbToJson3"; String [] filepaths=fileP...
阅读全文
posted @ 2016-12-14 16:04 life_start
阅读(194)
评论(0)
推荐(0)
2016年12月12日
25 读取jar包内log4j.properties文件方法
摘要: //读取log4j日志配置文件 InputStream inputStream=ApplicationExecutor.class.getResourceAsStream("/log4j_hwf.properties"); PropertyConfigurator.configure(inputStream); ### set log levels...
阅读全文
posted @ 2016-12-12 11:00 life_start
阅读(2182)
评论(0)
推荐(0)
2016年12月1日
13 hbase连接
摘要: Configuration conf=new Configuration(); String zookeeper=""; String clientport="2181"; String tableName="pbtest"; String rowkey="22977609"; conf.set(HBASE_ZOO...
阅读全文
posted @ 2016-12-01 14:27 life_start
阅读(84)
评论(0)
推荐(0)
2016年11月28日
1 Linux平台下快速搭建FTP服务器 win7下如何建立ftp服务器
摘要: 百度经验连接(亲测可用) http://jingyan.baidu.com/article/380abd0a77ae041d90192cf4.html win7下如何建立ftp服务器 http://jingyan.baidu.com/article/574c5219d466c36c8d9dc138.
阅读全文
posted @ 2016-11-28 15:41 life_start
阅读(149)
评论(0)
推荐(0)
2016年11月18日
24 配置项组织的一种方式
摘要: import org.slf4j.Logger; import org.slf4j.LoggerFactory; import java.io.File; import java.io.FileInputStream; import java.io.IOException; import java.util.Properties; /** * 所有配置项,配置加载与获取类 */ publ...
阅读全文
posted @ 2016-11-18 11:25 life_start
阅读(209)
评论(0)
推荐(0)
12 hdfs常用文件、目录拷贝操作、删除操作
摘要: package com.da.hbase.tool.utils; import com.da.hbase.tool.common.Const; import org.apache.hadoop.conf.Configuration; import org.apache.hadoop.fs.FileStatus; import org.apache.hadoop.fs.FileSystem; i...
阅读全文
posted @ 2016-11-18 11:22 life_start
阅读(6009)
评论(0)
推荐(0)
上一页
1
···
5
6
7
8
9
10
11
12
13
下一页
公告