摘要: 对象池化技术 对象池化的基本思路是:创建多个对象并管理,使用时借出对象,用完归还对象,等下一次需要这种对象的时候,再拿出来重复使用,从而在一定程度上减少频繁创建对象所造成的开销。用于充当保存对象的“容器”的对象,被称为“对象池”(Object Pool,或简称Pool)。对于没有状态的对象(例如S... 阅读全文
posted @ 2014-07-21 11:57 fenglie 阅读(2340) 评论(0) 推荐(0)
摘要: getResourcesAsStream()来读取.properties文件,但是getResourcesAsStream()仅在java项目时能获取根目录的文件;在web项目中,getResourcesAsStream()是获取classes目录的根路径例如:文件在WEB-INF/conf/con... 阅读全文
posted @ 2014-07-17 09:24 fenglie 阅读(3553) 评论(0) 推荐(0)
摘要: 错误Failed to fetch URL https://dl-ssl.google.com/android/repository/repository-6.xml, reason: Connection to https://dl-ssl.google.com refusedFailed to ... 阅读全文
posted @ 2014-07-10 11:35 fenglie 阅读(398) 评论(0) 推荐(0)
摘要: 一直不懂如何切换路径,每次都是删除---->检出;本地源码都不能保存下来,非常麻烦//在idea中svn切换到新分支:【vcs】 -> 【subversion】 -> 【update file】。 修改其中的svn路径即可如果SVN的IP改变//服务器ip地址更新 选择此项目,然后点击:【VC... 阅读全文
posted @ 2014-07-07 17:49 fenglie 阅读(28131) 评论(0) 推荐(2)
摘要: Spring bean通过@Autowired注入,spring auto scan配置,在编辑情况下,无法找不到对应的bean,于是提示找不到对应bean的错误。但build项目是能正常运行的。可在File -- Settings -- Inspections。在Spring Model -- A... 阅读全文
posted @ 2014-07-03 16:54 fenglie 阅读(9445) 评论(0) 推荐(0)
摘要: win + rregeditHKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.*(想要改变打开方式的文件格式,也就是文件扩展名。如/.7z/.bat等)\OpenWithList。在右边的对话... 阅读全文
posted @ 2014-06-11 10:03 fenglie 阅读(383) 评论(0) 推荐(0)
摘要: Google X高管Astro Teller在接受媒体采访时无意中透露了这款设备没有取得预期成绩的原因最终我们发现,在他们生活的世界里,数字生活和即时物理生活根本无法融为一体。Teller提出的这个观点相当正确,可穿戴设备看不见才让人心动。然而,我们都知道,Google Glass是一款一下子就能让... 阅读全文
posted @ 2014-06-05 14:37 fenglie 阅读(181) 评论(0) 推荐(0)
摘要: 一般在第一次源码安装是没有问题的,在版本变化情况下在次源码安装可能会遇到此问题:apache2.0.x与apache2.2.x在apr有很大区别,前者为依赖公用apr,后者依赖于自身的apr。一般前者也就是2.0.x的编译基本上没有apr方面的问题。如果是后者也出现关于apr的问题,则将安装前的ap... 阅读全文
posted @ 2014-06-04 15:40 fenglie 阅读(441) 评论(0) 推荐(0)
摘要: rpm -qa|grep libeventyum remove libevent* 或 rpm-e--nodeps--allmatches libevent* 阅读全文
posted @ 2014-06-04 15:38 fenglie 阅读(1093) 评论(0) 推荐(0)
摘要: to make tomcat to use javaw.exe instead of java.exeusing some startup parameter or environment varibaleAt the bottom ofsetclasspath.batset _RUNJAVA="%... 阅读全文
posted @ 2014-05-22 11:11 fenglie 阅读(1035) 评论(0) 推荐(0)
摘要: rem 复制文件copy "D:\xxxx" "C:\xxxx"rem 复制文件夹xcopy "D:\xxxx" "C:\xxxx" /e /i /h解压使用开源的7z命令版本(license GNU LGPL)7za x -y D:\xxxx.zip -oC:\::其中 -y 是覆盖::-oC... 阅读全文
posted @ 2014-05-20 16:43 fenglie 阅读(539) 评论(0) 推荐(0)
摘要: @echo offfor /f "delims=" %%i in ('netstat -a^|findstr 6660') do (set a=%%i)echo %a%pause::只返回一行数值,否则,它会只取最后一个,即最后一行。 阅读全文
posted @ 2014-05-19 15:40 fenglie 阅读(1442) 评论(0) 推荐(0)
摘要: @echo offrem test.sql文件for %%i in (test.sql) do ( echo excute %%i mysql -u用户名 -p密码 -D数据库名 < %%i)echo successpause 阅读全文
posted @ 2014-05-19 15:09 fenglie 阅读(650) 评论(0) 推荐(0)
摘要: @echo offrem 获取文件xx.zip的MD5for /f "delims=" %%i in ('md5.exe xx.zip') do (set md5_var=%%i)echo %md5_var%::从文件获取MD5 格式MD5=xxxxxxxxxxxxxx::tokens表示demli... 阅读全文
posted @ 2014-05-19 15:06 fenglie 阅读(787) 评论(0) 推荐(0)
摘要: Subversion 1.8 and IntelliJ IDEA 13Unlike its earlier versions, Subversion 1.8 support uses the native command line client instead of SVNKit to run co... 阅读全文
posted @ 2014-05-08 16:24 fenglie 阅读(455) 评论(0) 推荐(0)
版权所有,转载声明