mount

  博客园 :: 首页 :: 博问 :: 闪存 :: 新随笔 :: 联系 :: 订阅 订阅 :: 管理 ::

2011年11月9日

摘要: 一、 1、启动一个WEB项目的时候,WEB容器会去读取它的配置文件web.xml,读取<listener>和<context-param>两个结点。 2、紧急着,容创建一个ServletContext(servlet上下文),这个web项目的所有部分都将共享这个上下文。 3、容器将<context-param>转换为键值对,并交给servletContext。 4、容器创建<listener>中的类实例,创建监听器。 二、 load-on-startup 元素在web应用启动的时候指定了servlet被加载的顺序,它的值必须是一个整数。如果它的值 阅读全文
posted @ 2011-11-09 22:31 http://guoyinfeng.info/ 阅读(249) 评论(0) 推荐(0) 编辑

摘要: x 阅读全文
posted @ 2011-11-09 19:37 http://guoyinfeng.info/ 阅读(178) 评论(0) 推荐(0) 编辑

摘要: Servlet 工作原理解析发布日期:2011 年 2 月 24 日 级别:高级许令波, Java 工程师, 淘宝网许令波,developerWorks 中国网站最佳作者,现就职于淘宝网,是一名 Java 开发工程师。对大型互联网架构设计颇感兴趣,喜欢钻研开源框架的设计原理。有时间将学到的知识整理成文章,也喜欢记录下工作和生活中的一些思考。个人网站是: HYPERLINK "http://xulingbo.net" http://xulingbo.net。简介:Web 技术成为当今主流的互联网 Web 应用技术之一,而 Servlet 是 Java Web 技术的核心基础。 阅读全文
posted @ 2011-11-09 18:50 http://guoyinfeng.info/ 阅读(1928) 评论(0) 推荐(0) 编辑

摘要: 阅读全文
posted @ 2011-11-09 18:36 http://guoyinfeng.info/ 阅读(161) 评论(0) 推荐(0) 编辑

摘要: x 阅读全文
posted @ 2011-11-09 18:32 http://guoyinfeng.info/ 阅读(141) 评论(0) 推荐(0) 编辑

摘要: 1 <?xml version="1.0" encoding="UTF-8"?> 2 <web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" xsi:schemaLocation="http:/ 阅读全文
posted @ 2011-11-09 17:26 http://guoyinfeng.info/ 阅读(173) 评论(0) 推荐(0) 编辑

摘要: 阅读全文
posted @ 2011-11-09 17:24 http://guoyinfeng.info/ 阅读(158) 评论(0) 推荐(0) 编辑

摘要: 1 package com.apple.sqm.dnwd.detect.delta; 2 3 import org.apache.commons.logging.Log; 4 import org.apache.commons.logging.LogFactory; 5 6 import com.apple.sqm.dnwd.detect.ADetect; 7 8 9 public class Detect extends ADetect{10 11 Log log = LogFactory.getLog(Detect.class);12 13 @Overri... 阅读全文
posted @ 2011-11-09 17:20 http://guoyinfeng.info/ 阅读(2666) 评论(0) 推荐(0) 编辑

摘要: 1 package com.apple.sqm.dnwd.detect; 2 3 import org.apache.commons.logging.Log; 4 import org.apache.commons.logging.LogFactory; 5 import org.quartz.JobExecutionContext; 6 import org.quartz.JobExecutionException; 7 import org.springframework.scheduling.quartz.QuartzJobBean; 8 9 public abstract cla... 阅读全文
posted @ 2011-11-09 17:18 http://guoyinfeng.info/ 阅读(184) 评论(0) 推荐(0) 编辑

摘要: 1 package com.apple.sqm.dnwd; 2 3 import org.apache.commons.logging.Log; 4 import org.apache.commons.logging.LogFactory; 5 import org.springframework.context.support.ClassPathXmlApplicationContext; 6 7 public class DNWDServer { 8 9 /**10 * @param args11 */12 private static Log log =... 阅读全文
posted @ 2011-11-09 17:17 http://guoyinfeng.info/ 阅读(150) 评论(0) 推荐(0) 编辑

摘要: 1 log4j.rootLogger=INFO,appender12 # org.springframework\u5305\u4e0b\u9762\u6240\u6709\u7684\u65e5\u5fd7\u8f93\u51fa\u7684\u7ea7\u522b\u8bbe\u4e3aDEBUG3 log4j.logger.org.springframework=INFO4 # \u63a7\u5236\u53f0\u8f93\u51fa5 log4j.appender.appender1=org.apache.log4j.ConsoleAppender6 log4j.appender. 阅读全文
posted @ 2011-11-09 17:16 http://guoyinfeng.info/ 阅读(188) 评论(0) 推荐(0) 编辑

摘要: 1 # \u6b64\u914d\u7f6e\u6587\u4ef6\u53ef\u4ee5\u7701\u7565,\u9ed8\u8ba4\u5c31\u662f\u4f7f\u7528\u7684log4j2 # \u5fc5\u987b\u8981\u6709commons-logging-1.1.1.jar;3 # commons-logging-adapters-1.1.1.jar,commons-logging-api-1.1.1.jar\u4e3a\u53ef\u90094 org.apache.commons.logging.Log=org.apache.commons.lo 阅读全文
posted @ 2011-11-09 17:13 http://guoyinfeng.info/ 阅读(193) 评论(0) 推荐(0) 编辑

摘要: 1 <?xml version="1.0" encoding="UTF-8"?> 2 <beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:context="http://www.springframework.org/schema/context" xmlns:aop="http:// 阅读全文
posted @ 2011-11-09 17:10 http://guoyinfeng.info/ 阅读(200) 评论(0) 推荐(0) 编辑

摘要: 阅读全文
posted @ 2011-11-09 17:07 http://guoyinfeng.info/ 阅读(204) 评论(0) 推荐(0) 编辑

摘要: 1.quartz 阅读全文
posted @ 2011-11-09 17:02 http://guoyinfeng.info/ 阅读(151) 评论(0) 推荐(0) 编辑

摘要: 1.quartz百分百自己会用2. 阅读全文
posted @ 2011-11-09 16:57 http://guoyinfeng.info/ 阅读(130) 评论(0) 推荐(0) 编辑

摘要: x 阅读全文
posted @ 2011-11-09 16:56 http://guoyinfeng.info/ 阅读(163) 评论(0) 推荐(0) 编辑

摘要: X 阅读全文
posted @ 2011-11-09 16:51 http://guoyinfeng.info/ 阅读(130) 评论(0) 推荐(0) 编辑

摘要: x 阅读全文
posted @ 2011-11-09 16:38 http://guoyinfeng.info/ 阅读(141) 评论(0) 推荐(0) 编辑

摘要: select supplier,module,pline,station,date,avg(detail.valuedouble) from `sqm`.`sqm_value_quality_detail` detail , `sqm`.`sqm_station_performance_view` stationwhere detail.valuetype='double' and detail.value_station_id = station.guidgroup by supplier,module,pline,station,date 阅读全文
posted @ 2011-11-09 15:34 http://guoyinfeng.info/ 阅读(129) 评论(0) 推荐(0) 编辑