Servlet生命周期分为三个阶段: 1,初始化阶段 调用init()方法 2,响应客户请求阶段 调用service()方法 3,终止阶段 调用destroy()方法Servlet初始化阶段: 在下列时刻Servlet容器装载Servlet: 1,Servlet容器启动时自动装载某...
分类:
其他好文 时间:
2014-08-14 16:25:58
阅读次数:
192
一、二段设计模式二段构建模式就是将内存空间的分配和初始化分开来完成,然后调用一个静态方法来返回这个对象。调用Sprite::create()的时候内部先使用new来分配内存空间,然后调用init方法来初始化一些变量的设置。所以cocos2dx中的二段构建模式就是将new分配内存空间和init初始化内...
分类:
其他好文 时间:
2014-08-14 16:23:08
阅读次数:
226
Spring 的 init-method 和 destory-method...
分类:
编程语言 时间:
2014-08-14 14:11:49
阅读次数:
229
Treasure Hunt I
Time Limit: 2 Seconds Memory Limit: 65536 KB
Akiba is a dangerous country since a bloodsucker living there. Sometimes the bloodsucker will appear and kill everyone who isn't...
分类:
其他好文 时间:
2014-08-14 10:49:38
阅读次数:
266
CentOS6:httpd配置文件:/etc/httpd/conf/httpd.conf
/etc/httpd/conf.d/*.conf服务脚本:
/etc/rc.d/init.d/httpd脚本配置文件:/etc/sysconfig/httpd
模块目录:/etc/httpd/modules:链接文件
/usr/lib64/httpd/modules主程序:/usr/sbin/httpd:
prefork
/usr/sbin/httpd.eve..
分类:
其他好文 时间:
2014-08-14 03:58:58
阅读次数:
452
一、编译安装apache1、解决依赖关系httpd-2.4.9需要较新版本的apr和apr-util(1)编译安装apr#make&&makeinstall(2)编译安装apr-util#make&&makeinstall2、编译安装httpd-2.4.93、修改httpd的主配置文件,设置其Pid文件的路径4、提供SysV服务脚本/etc/rc.d/init...
分类:
其他好文 时间:
2014-08-14 03:56:58
阅读次数:
211
1,如果是安装包安装在Linux系统下,那么可以使用[root@localhost ~]# service httpd restart从而可以开启或者重启apache服务与此同时,它的标准方式是:[root@localhost ~]# /etc/rc.d/init.d/httpd start或者[r...
分类:
系统相关 时间:
2014-08-14 03:45:27
阅读次数:
251
Do you know how to init list in other way except for new object? The following will give you serveral tips. If having other great idea, you are welcome to share.
[java] view
plaincopy
...
分类:
编程语言 时间:
2014-08-14 01:30:37
阅读次数:
281
这里总结下lecture 4 & 5 部分的内容。lecture 4介绍了更多Objective-C的内容,包括了创建对象(alloc init & class method),给nil发送消息,id类型,动态绑定,内省等内容;下半部分介绍了Foundation框架的一些内容。lecture 5介....
分类:
移动开发 时间:
2014-08-14 01:25:07
阅读次数:
243