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/ 阅读(259) 评论(0) 推荐(0)

摘要: x 阅读全文
posted @ 2011-11-09 19:37 http://guoyinfeng.info/ 阅读(187) 评论(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/ 阅读(1938) 评论(0) 推荐(0)

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

摘要: x 阅读全文
posted @ 2011-11-09 18:32 http://guoyinfeng.info/ 阅读(157) 评论(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/ 阅读(183) 评论(0) 推荐(0)

摘要: 阅读全文
posted @ 2011-11-09 17:24 http://guoyinfeng.info/ 阅读(167) 评论(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/ 阅读(2677) 评论(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/ 阅读(195) 评论(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/ 阅读(160) 评论(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/ 阅读(199) 评论(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/ 阅读(202) 评论(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/ 阅读(215) 评论(0) 推荐(0)

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

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

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

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

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

摘要: x 阅读全文
posted @ 2011-11-09 16:38 http://guoyinfeng.info/ 阅读(148) 评论(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/ 阅读(141) 评论(0) 推荐(0)

摘要: where子句比较运算符: < , <= , > , >= , = , != , !< , !> . text , ntext , image .型数据不可用。范围说明: between A and B, not between A and B.可选值列表: in , not in .一般用于嵌套查询模式匹配: like , not like .是否空值: is null , is not null .上述条件的逻辑组合: and , or , not 内容大小写敏感like关键字的通配符% ,0或多个字符组成的字符串 _,任意单个字符[] ,用于指定范围, 阅读全文
posted @ 2011-11-09 13:35 http://guoyinfeng.info/ 阅读(858) 评论(0) 推荐(0)

摘要: SQL LEFT JOIN 关键字LEFT JOIN 关键字会从左表 (table_name1) 那里返回所有的行,即使在右表 (table_name2) 中没有匹配的行。LEFT JOIN 关键字语法SELECT column_name(s)FROM table_name1LEFT JOIN table_name2 ON table_name1.column_name=table_name2.column_name注释:在某些数据库中, LEFT JOIN 称为 LEFT OUTER JOIN。原始的表 (用在例子中的):"Persons" 表:Id_PLastNameF 阅读全文
posted @ 2011-11-09 13:15 http://guoyinfeng.info/ 阅读(143) 评论(0) 推荐(0)

摘要: All,I just checked in a lot of code and completed the configuration for flex to integrate with Spring seamlessly.That means we don’t need explicit get instance by SpringContainer.getObject in façade layer.Please update code to see if there is any wrong after my check-in.I’ll explain what I have 阅读全文
posted @ 2011-11-09 11:24 http://guoyinfeng.info/ 阅读(134) 评论(0) 推荐(0)