- 博客(8)
- 收藏
- 关注
原创 集合的默认初始容量、加载因子、扩容增量
常用集合的默认初始容量和扩容的原因: 当底层实现涉及到扩容时,容器或重新分配一段更大的连续内存(如果是离散分配则不需要重新分配, 离散分配都是插入新元素时动态分配内存),要将容器原来的数据全部复制到新的内存上,这无疑使效率 大大降低。 加载因子的系数小于等于1,意指 即当 元素个数 超过 容量长度*加载因子的系数 时,进行扩容。另外,扩容也是有默认的倍数的,不同的容器扩容...
2016-12-02 14:58:44
153
原创 sts按照testng
Using the dropins folder is not recommended. Go to help -> Install new software. In the Work with text box, use this URL: http://beust.com/eclipse
2016-06-21 15:45:03
286
原创 操蛋啊日
Could not get configured mojo for org.apache.maven.plugins:maven-checkstyle-plugin:2.17:checkstyle {execution: checkstyle}Plugin org.apache.maven.plugins:maven-checkstyle-plugin:2.17 or one of its d...
2016-06-14 14:37:47
111
原创 sts
吗的,今天又手贱了。 An internal error occurred during: "Building workspace".GC overhead limit exceeded -Xms512m-Xmx1024m-XX:PermSize=512m-XX:MaxPermSize=1024m
2016-05-20 10:55:07
88
原创 openfire
记录一下使用openfire开发即时通讯时遇到的问题: 1、安装openfire; 2、使用smack类库连接openfire: 在连接的时候如果报错如下: Caused by: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path t...
2016-04-12 15:39:53
133
原创 登录,太难了
HttpSession session = request.getSession(false); 1、用户第一次请求登录,要先将还存在服务器端的session置为无效: if(session != null) session.invalidate(); 然后生成session: session = request.getSession(); 可以设置隔多长时间不操作sessi...
2016-04-08 15:50:58
121
原创 spring的filter代理
单元测试里测试controller,有的接口需要用户登录,登录的处理是在filter里更具请求过来的token进行解析后验证,这里需要加filter放到spring容器里,通过org.springframework.web.filter.DelegatingFilterProxy实现。 ...
2016-03-21 15:03:22
140
原创 maven常见问题记录
1、打包命令:mvn package -P xxx 2、[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.5.1:compile (default-compile) on project migumoa: Fatal error compiling: tools.jar not fo...
2016-02-03 15:34:13
76
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人