自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+

人生架构,架构人生

合抱之木,生于毫末;九层之台,起于累土;千里之行,始于足下

  • 博客(3)
  • 资源 (6)
  • 收藏
  • 关注

原创 spring ApplicationContext#getBean 方法

今天写代码的时候想通过类型去获取spring容器中的某个bean实例,最简单的办法就是通过SessionFactory sessionFactory = ctx.getBean(SessionFactory.class);这种形式,既简单又不需要处理类型安全问题,但是该方法带来一个问题就是,如果spring容器中找不到类型为 SessionFactory.class 的实例,则会抛出 NoSu

2012-06-22 18:15:35 2380

原创 解决 log4j 在 linux 上出现乱码的问题

使用log4j的时候,在WIN系统的时候正常显示中文,但是发布到linux系统的时候中文就显示成乱码了由于log4j配置文件中没有设置编码格式(encoding),所以log4j就使用系统默认编码。导致乱码。解决方法是设置编码格式UTF-8,方法为(有时改成UTF-8还是会乱码,需要设置成GBK,这可能跟你输入的字符的编码有关):log4j.appender.logfile.encod

2012-06-07 20:43:59 4044

原创 tomcat 中配置 access log 监控每个 http request 的处理时间

tomcat 6的配置官方文档:http://tomcat.apache.org/tomcat-6.0-doc/config/valve.html 在 conf/server.xml 中配置 元素,可以在(Context, Host, or Engine) 等元素下配置                                                direct

2012-06-05 17:46:03 3168

Linux下oracle 11g的安装

linux,oracle,安装 至少1024MB内存空间,oracle软件需要4.0GB以上磁盘空间(oracle 11g要求的磁盘空间为3.95GB),要求linux OS Kernel Version 2.6.9 查看系统配置的相关命令:

2012-04-29

省市区数据使用JS静态化

省/市/区数据静态化,通常情况下我们也许会采用AJAX去实现,使用AJAX时难免要走服务器端-->数据库,而对于大型应用来说80%的性能影响来自于数据库,所以我们对于数据库的使用原则应该是尽量去减少和数据库的交互,而像省/市/区这样的信息变动的可能性非常小,所以我们可以考虑将这些信息静态化。

2010-08-29

JDK1.6源代码下载

JDK1.6源代码,欢迎需要的朋友下载,绝对货真价值

2010-05-02

jQueryDocXML2CHM-090223.chm

jQuery帮助文档chm版《jQueryDocXML2CHM-090223.chm》

2009-08-08

firebug-1.4.0b7-fx

资源文件名:firebug-1.4.0b7-fx.xpi

2009-08-08

HttpWatch 6.1.41

HttpWatch integrates with Internet Explorer and Mozilla Firefox to provide unrivalled levels of HTTP monitoring, without the need for separately configured proxies or network sniffers. Simply interact with a web site and HttpWatch will display a log of requests and responses alongside the web page itself. It even shows interactions between the browser and its cache. Each HTTP transaction can be examined to see the values of headers, cookies, query strings and other HTTP related data. Commercial web sites often use technologies such as HTTP compression, SSL encryption and chunked encoding to provide the best levels of security and performance. HttpWatch works with these technologies to provided a detail view of HTTP activity within Internet Explorer.

2009-08-08

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除