比较修改前后对象://返回一个map以不同的属性名为key,value为一个list分别存obj1,obj2此属性名的值 public static Map> equals(Object obj1,Object obj2) throws IntrospectionException, Illegal...
分类:
编程语言 时间:
2015-12-09 18:52:33
阅读次数:
223
因为项目用到Pch文件链接宏变量,因而稍作研究怎样使用,define宏变量其实并不合适 ,static const才最适合 Pch文件听说是上古世纪存在的文件,主要是用来全局预编译文件统一在一个出口,方便编程管理,但同时往往会造成预编译时间过长,但预编译只要设置恰当,其实并没有增加时间,还方便了开....
分类:
其他好文 时间:
2015-12-09 16:48:52
阅读次数:
180
一.运算符1.算术运算符+ - * / % ++ --public class Test7 { public static void main(String[] args) { int x = 10; int y = 3; float f = 3...
分类:
编程语言 时间:
2015-12-09 15:12:54
阅读次数:
155
public static void main(String[] args) { Map map = new HashMap(); map.put("1", "value1"); map.put("2", "value2"); map.put(...
分类:
其他好文 时间:
2015-12-09 13:56:07
阅读次数:
117
实际上这是个 HDFS 的工具类部分代码。 首先public static Configuration configuration = null;public static FileSystem fileSystem = null;static { try { if (null == configu...
分类:
其他好文 时间:
2015-12-09 13:41:15
阅读次数:
253
1.Java中除了static方法和final方法(private方法本质上属于final方法,因为不能被子类访问)之外,其它所有的方法都是动态绑定,这意味着通常情况下,我们不必判定是否应该进行动态绑定—它会自动发生。final方法会使编译器生成更有效的代码,这也是为什么说声明为final方法能在一...
分类:
编程语言 时间:
2015-12-09 11:45:38
阅读次数:
204
语法规则: location [=|~|~*|^~] /uri/ { … }= 开头表示精确匹配^~ 开头表示uri以某个常规字符串开头,理解为匹配 url路径即可。nginx不对url做编码,因此请求为/static/20%/aa,可以被规则^~ /static/ /aa匹配到(注意是空格)。~ ...
分类:
其他好文 时间:
2015-12-09 11:25:41
阅读次数:
104
public static String readHtml(String myurl) { StringBuffer sb = new StringBuffer(""); URL url; try { url = new URL(myurl); Buff...
分类:
编程语言 时间:
2015-12-09 08:49:06
阅读次数:
244
1.获得页面代码:URL和URLConnection类对于希望建立与HTTP服务器的连接来获取信息public class UrlConnection2{ public static void main(String[] args) throws Exception { U...
分类:
Web程序 时间:
2015-12-09 01:54:27
阅读次数:
275
1.创建线程方式:(1)继承Thread,并重写run方法 1 public class ThreadDemo01 { 2 public static void main(String[] args) { 3 MyThread1 t1=new MyThread1(); 4 ...
分类:
编程语言 时间:
2015-12-09 00:17:15
阅读次数:
219