`
xiexd
  • 浏览: 245261 次
  • 性别: Icon_minigender_1
  • 来自: 杭州
社区版块
存档分类
最新评论
文章列表
[Java]读取文件方法大全 1、按字节读取文件内容 2、按字符读取文件内容 3、按行读取文件内容 4、随机读取文件内容 <!-- <br /><br />Code highlighting produced by Actipro CodeHighlighter (freeware)<br />http://www.Co ...
1, 在web.xml中定义 contextConfigLocation参数.spring会使用这个参数加载.所有逗号分割的xml.如果没有这个参数,spring默认加载web-inf/applicationContext.xml文件. <context-param> <param-name>contextConfigLocation</param-name> <param-value> classpath*:conf/spring/applicationContext_core*.xml, classpath*:conf/spring/ ...

PHP定时

    博客分类:
  • php
<?     set_time_limit(0);     ignore_user_abort(true);    $i=1;   while($i){     /*     处理事务     */     sleep(120);     }     exit;     ?>  
关键字: ibatis cache 概述 iBatis对查询结果集进行本地缓存。 Cache 的key由haskcode、checksum、查询参数、sqlmap Id、sql语句、调用方法名等构成。由此可以看出,不同的参数会有不同的Key。注意,他不是以查询参数的Class的hashcode或 toString方法作为key的一部分,而是以在sqlmap使用的变量的集合。 queryForObject和queryForList都可以缓存。其它片断不支持。 可以设定为定时刷新或受条件触发刷新Key。如:在 ...
如何指定tomcat中session过期时间 1. 在server.xml中定义context时采用如下定义: <Context path="/livsorder" docBase="/home/httpd/html/livsorder"      defaultSessionTimeOut="3600" isWARExpanded="true"      isWARValidated="false" isInvokerEnabled="true"  ...
public static String getNewDate(String strDate,Integer flag){               if(null==strDate || "".equals(strDate) || null==flag ){                  return null ;             }              Calendar cal = Calendar.getInstance();               String[] dateArr = strDate.split(" ...
表面现象: 当一个Action中既没有重写ActionSupport中的validate方法, 也没有相关的validata.xml文件, 并且action中并没有INPUT的出口, 但是最终LOG里面却告诉我们这个Action返回INPUT了. 这到底是怎么一回事呢.. 了解下代码: webwork中,如果有添加workflow这个interceptor, 那么ActionA chain到 ActionB的时候, 如果ActionA中有调用 addActionError这个方法, 然后chain到ActionB, 这时候Acti ...
Xml代码 <? xml   version = "1.0"   encoding = "UTF-8" ?>       < beans   xmlns = "http://www.springframework.org/schema/beans"         xmlns:xsi = "http://www.w3.org/2001/XMLSchema-insta ...
问:Spring 2.0,使用<aop:config>来配置AOP <?xml version="1.0" encoding="UTF-8" ?><!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN 2.0//EN" "http://www.springframework.org/dtd/spring-beans-2.0.dtd"> <beans xmlns="http://www.springframework.org/s ...
Spring cvc-elt.1: Cannot find the declaration of element 'beans'.  <script type="text/javascript"> document.body.oncopy = function () { if (window.clipboardData) { setTimeout(function () { var text = clipboardData.getData(& ...
  global::System.Console.WriteLine(number); 冒号在什么地方用.   点是空间下类,表示下一层的意思?   这里面::前面是GAC的标示符global,用法比较特殊,和.不是一个类型的东西。   global 是 C# 2.0 中新增的关键字,理论上说,如果代码写得好的话,根本不需要用到它。    假设你现在写了一个类,名字叫 System。那么当你再在代码里写 System 的时候,编译器就不知道你是要指你写的 System 类还是系统的 System 命名空间,而 System 命名空间已经是根命名空间了,无法再通过完全限 ...
固定宽度CSS版式布局
今天发现了一个不错的css+div布局网站。学习css+div的童鞋不妨可以参考下。共50种布局。 地址:http://cssdiv.net/layout/ 截图:
amxku 发表于 2006-11-30, 10:13. 发表在: 技术相关 1、研究说明   Tencent在tqq.tencent.com的8000有一个使用HTTP的QQ接口,通过这个接口,可以进行一些基本的操作,如:登陆、 登出、改变登陆状态(上线、忙碌、离线 ...
    网上常用免费WebServices集合 2010-08-17 16:26:00 来自:博客园-首页原创精华区                       
Global site tag (gtag.js) - Google Analytics