摘要: ClassLoaderWrapper.java package org.utils.resource; import java.io.InputStream; import java.net.URL; class ClassLoaderWrapper { ClassLoader defaultClassLoader; ClassLoader systemClassLoader; ... 阅读全文
posted @ 2017-11-14 14:44 星瑞 阅读(729) 评论(0) 推荐(0) 编辑
摘要: 源码: 测试代码: 阅读全文
posted @ 2017-11-14 10:17 星瑞 阅读(6350) 评论(0) 推荐(0) 编辑
摘要: 代码: 执行结果: 阅读全文
posted @ 2017-11-10 15:15 星瑞 阅读(2263) 评论(0) 推荐(0) 编辑
摘要: 源码: 执行结果: 阅读全文
posted @ 2017-11-10 11:37 星瑞 阅读(372) 评论(0) 推荐(0) 编辑
摘要: 明明使用的是1.8jdk,但是运行项目时提示使用的是java版本是1.5,版本过低。 修改pom.xml,添加如下: 阅读全文
posted @ 2017-11-09 18:12 星瑞 阅读(1200) 评论(0) 推荐(0) 编辑
摘要: 启动、关闭hbase ./bin/start-hbase.sh./bin/stop-hbase.sh 查询HBase版本。它的语法如下: [root@hadoop03 ~]# hbase shellhbase(main):010:0> version 建表create ‘<table name>’, 阅读全文
posted @ 2017-11-09 10:50 星瑞 阅读(8804) 评论(0) 推荐(0) 编辑
摘要: 推荐几个好的 Maven 常用仓库网址:http://mvnrepository.com/http://search.maven.org/ Maven 安装 JAR 包的命令是: mvn install:install-file -Dfile=jar包的位置 -DgroupId=groupId -D 阅读全文
posted @ 2017-11-09 10:12 星瑞 阅读(355) 评论(0) 推荐(0) 编辑
摘要: 安装rz和sz命令: yum install lrzsz 安装unzip:yum install unzip 阅读全文
posted @ 2017-11-08 16:38 星瑞 阅读(580) 评论(0) 推荐(0) 编辑
摘要: 执行结果: 阅读全文
posted @ 2017-11-03 13:11 星瑞 阅读(21762) 评论(0) 推荐(0) 编辑
摘要: 1 package basic; 2 3 //StringBuffer的使用方法,用于保存频繁修改的字符串 4 public class StringBufferDemo { 5 6 public static void main(String[] args) { 7 //实例化 8 String str = "abc"; 9 ... 阅读全文
posted @ 2017-11-03 13:11 星瑞 阅读(3428) 评论(0) 推荐(0) 编辑
摘要: 执行结果: 阅读全文
posted @ 2017-11-03 13:10 星瑞 阅读(31770) 评论(0) 推荐(1) 编辑
摘要: 1 package basic; 2 //数组遍历方法 3 public class ForEach { 4 5 public static void main(String[] args) { 6 // 原始数组 7 String strs[] = { "a", "b", "c", "d" }; 8 9 ... 阅读全文
posted @ 2017-11-03 13:08 星瑞 阅读(285) 评论(0) 推荐(0) 编辑
摘要: 运行结果: 阅读全文
posted @ 2017-11-01 15:48 星瑞 阅读(9263) 评论(1) 推荐(1) 编辑
摘要: 截图: 阅读全文
posted @ 2017-11-01 15:44 星瑞 阅读(6667) 评论(0) 推荐(0) 编辑
摘要: 截图: 阅读全文
posted @ 2017-11-01 15:42 星瑞 阅读(13693) 评论(0) 推荐(0) 编辑