常用的系统在nginx下的伪静态规则。
Monthly Archives: 二月 2010
Struts 2注解实例二
这个例子将继续前面讲的例子
Struts 2注解实例一
本文将通过一个前台通过表单输入user,来实现hello user的方式来讲述Struts2中使用注解。
在windows上安装nginx+php环境
目前,nginx以其独特的性能越来越博得喜爱,LNMP环境逐步代替了LAMP环境。Nginx从v0.7.52也开始支持windows环境。接下来简要介绍些安装方法。
使用Properties文件来对Log4j进行配置
Log4j will be usually configured using a properties file or xml file externally. So once the log statements are in place you can easily control them using the external configuration file without modifying the source code. Now let’s see how you can obtain the same log output as the previous example using the properties file [...]
简单的Log4j配置
在struts2的网站上看到一个不错的网站:http://www.vaannila.com 看到里面的一些文章很不错。从今天开始陆续翻译一些文章。今天开始翻译Log4j。 Log4j is a simple and flexible logging framework. In this tutorial you will learn how to configure log4j for your applications. Let’s get started first download the latest version of log4j ( Download ). I am using log4j version 1.2.15. Add the log4j-1.2.15.jar to the classpath. Log4j是一个简单而且灵活的日志记录框架,在这教程中,我们将学习到在你的应用中如何对log4j进行配置。首先下载最新的版本log4j(下载)。我使用的是1.2.15版本。将Jar包log4j-1.2.15.jar 加入类路径。 Next you need to create [...]
Hibernate3错误:could not initialize proxy – no Session的解决办法
前段时间在项目中出现以下错误: org.hibernate.LazyInitializationException: could not initialize proxy – no Session at org.hibernate.proxy.AbstractLazyInitializer.initialize(AbstractLazyInitializer.java:57) at org.hibernate.proxy.AbstractLazyInitializer.getImplementation(AbstractLazyInitializer.java:111)
PHP获取客户端IP的几种方法
PHP获取客户端IP有几个函数,下面介绍下三种常用的写法。
jqGrid基础学习:6jqGrid中方法使用
jqGrid的方法一般用法如下: … jQuery(“#grid_id”).jqGridMethod( parameter1,…parameterN ); … grid_id 是已经实现定义好的jqGrid。 jqGridMethod 是要应用到jqGrid的方法。 parameter1,…parameterN – 一系列方法。
jqGrid基础学习:5jqGrid中事件的使用
jqGrid中提供了丰富的事件。主要如下,这些只要看看就好。部分用不到,部分要到再详解。
