- 博客(9)
- 资源 (10)
- 收藏
- 关注
转载 ldap
这几天做基于ibm portal 6的登录改造, 验证是基于ldap的。由于没有登录portlet的源代码,于是就自己去做这个ldap的用户认证。一开始向到根据用户名和密码去查找ldap,根据找不着得到用户来决定验证是否成功, 但这个密码无论怎样都验证不成功。。。只好放弃该方法难道就没有办法验证ldap用户了??网上搜索, 还是得到了方法, 其实很简单,就是利用这个用户名和密码连接
2016-06-30 18:08:13 245
转载 MemoryAnalyzer MAT介绍
1、MAT是什么? MAT(Memory Analyzer Tool),一个基于Eclipse的内存分析工具,是一个快速、功能丰富的Java heap分析工具,它可以帮助我们查找内存泄漏和减少内存消耗。使用内存分析工具从众多的对象中进行分析,快速的计算出在内存中对象的占用大小,看看是谁阻止了垃圾收集器的回收工作,并可以通过报表直观的查看到可能造成这种结果的对象。
2016-06-21 11:24:59 418
转载 lucence入门
更新:下面的代码使用Lucene 4.0版本!Lucene大大简化了在应用中集成全文搜索的功能。但实际上Lucene十分简单,我可以在五分钟之内向你展示如何使用Lucene。1. 建立索引为了简单起见,我们下面为一些字符串创建内存索引:1234567891011
2016-06-20 16:47:59 277
转载 spring声明式事务管理
项目使用SSH架构,现在要添加Spring事务管理功能,针对当前环境,只需要添加Spring 2.0 AOP类库即可。添加方法:点击项目右键->Build Path->Add librarys: 打开Add Libr
2016-06-20 14:39:23 377
转载 java应用cpu过高
一个应用占用CPU很高,除了确实是计算密集型应用之外,通常原因都是出现了死循环。(友情提示:本博文章欢迎转载,但请注明出处:hankchen,http://www.blogjava.net/hankchen)以我们最近出现的一个实际故障为例,介绍怎么定位和解决这类问题。根据top命令,发现PID为28555的Java进程占用CPU高达200%,出现故障。通过
2016-06-07 22:26:00 271
转载 response的contentType
不同的ContentType 会影响客户端所看到的效果.默认的ContentType为 text/html 也就是网页格式.代码如: 显示的为网页,而 则会显示html原代码.以下为一些常用的 ContentTypeGIF images JPEG images TIFF images
2016-06-06 17:54:23 293
转载 maven私服
1、配置Nexus为maven的私服第一种方式:在项目的POM中如下配置repositories> repository> id>nexus_publicid> url>http://localhost:8081/nexus/content/groups/public/url> rele
2016-06-05 22:38:02 357
转载 -Dmaven.multiModuleProjectDirectory
eclipse中使用maven插件的时候,运行run as maven build的时候报错-Dmaven.multiModuleProjectDirectory system propery is not set. Check $M2_HOME environment variable and mvn script match. 直接的解决方法:使用低版本的maven
2016-06-05 17:13:13 658
转载 SecurityContextHolder.getContext().getAuthentication()为空
场景:SecurityContextHolder.getContext().getAuthentication()为空的解决在controller里边发现SecurityContextHolder.getContext().getAuthentication()始终为nullhttp://blog.csdn.net/jjk_02027/article/details/6
2016-06-01 12:32:45 9794 2
myeclipse2017破解插件
2017-09-21
html5 demo
2017-09-19
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人