摘要:
1.冒泡排序 2.二分法 public static int getT(int [] a ,int tag){ int first =0; int end = a.length; for (int i = 0; i < a.length; i++) { int temp = (first+end)/ 阅读全文
摘要:
看集合前先看 反射-->泛型-->集合-->集合源码. 1.泛型 http://blog.csdn.net/seu_calvin/article/details/52230032 >泛型 通配符和泛型的区别 通配符上边界和下边界 数组中泛型注意的问题 JVM泛型擦除机制 泛型:让编程人员能够使用类型 阅读全文
摘要:
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/P 阅读全文
摘要:
今天在启动服务器的时候 发生错误 Open quote is expected for attribute "type" associated with an element type "resultMap" 造成的原因是 mybatis.xml中的 type 少了引号 正常的启动,加载到自己新加入 阅读全文
摘要:
当用springMVC上传下载文件,配置上传下载文件的大小的时候会造成 java.lang.NoClassDefFoundError: org/apache/commons/fileupload/FileItemFactory fileupload 路径下的这个类找不到,使用其他项目管理工具的自己下 阅读全文
摘要:
public final int getAndIncrement() { for (;;) { int current = get(); int next = current + 1; if (compareAndSet(current, next)) return current; } } 这个方 阅读全文
摘要:
>使用技巧可以借鉴 http://blog.csdn.net/flysun3344/article/details/52226160 >注意事项: 1.不能为静态注入属性,只有bean初始化的时候才能注入 2.在controller使用的时候,需要在springmvc 中配置扫描的包 3.在serv 阅读全文