`
文章列表
有关servlet的操作,使用中不断总结增加 1//获取servlet初始化时候的参数 String useDelay=this.getServlet().getServletContext().getInitParameter("useDelay");
spring中带了对定时任务的实现,从而使你不必写一个自己的线程来定期扫描是否需要执行某任务。 具体的配置如下 spring配置文件中的配置   <!-- 定时任务 开始--> <bean name="quartzSchedualr" class="org.springframework. ...
今天继续在看Think in java .看到讲初始化这章,讲到System.gc();进行垃圾回收,强制进行终结动作(finilize()),一时兴起看了下System.gc()方法的源代码.如下 public static void gc() { Runtime.getRuntime().gc(); }  继续去看Runtime类的gc()方 ...
系统中有一张记录登录和注销的日志表,时间长了之后,数据量很大,又没有历史表。 而客户端登录时都会去数据库查询用户上次登录的IP和时间,由于没有索引所以很慢有时侯。 故需要对此表加入索引,一提高查询效率   首先先查下表中存在哪些索引 select index_name from all_indexes where table_name = 'SYSLOG';   如果不存在指定字段的索引,则进行创建 create index PK_SYSLOG on M_TRADERLOG(id);    
因为最近在改一些JS的东西,今天遇到了一些<framset>下嵌套<frameset>的取值情况。 发现原来每个<frame>包含的页面都有自己的一个document对象,要想取得某个页面的值必须定位到该frame下,然后才能取到。 一下面的情况为例:index.jsp <frameset rows="55,*" cols="*" frameborder="NO" border="0" framespacing="0"> < ...
  package com.liuc.test; import java.io.File; import java.io.FileOutputStream; import java.io.IOException; import org.jdom2.Attribute; import org.jdom2.Document; import org.jdom2.Element; import org.jdom2.JDOMException; import org.jdom2.input.SAXBuilder; import org.jdom2.output.Format; ...
遍历DOM   package com.liuc.test; import java.io.File; import java.io.IOException; import java.util.Iterator; import java.util.List; import org.jdom2.Attribute; import org.jdom2.Comment; import org.jdom2.Document; import org.jdom2.Element; import org.jdom2.JDOMException; import org.jdom2 ...
  package com.liuc.test; import java.io.File; import java.io.IOException; import java.util.Iterator; import java.util.List; import org.jdom2.Attribute; import org.jdom2.Document; import org.jdom2.Element; import org.jdom2.JDOMException; import org.jdom2.input.SAXBuilder; public cla ...
转自:http://www.it.com.cn/f/edu/053/27/93819.htm   在平时工作中,难免会遇到把 XML 作为数据存储格式。面对目前种类繁多的解决方案,哪个最适合我们呢?在这篇文章中,我对这四种主流方案做一个不完全评测,仅仅针对遍历 XML 这块来测试,因为遍历 XML 是工作中使用最多的(至少我认为)。   预 备   测试环境:   AMD 毒龙1.4G OC 1.5G、256M DDR333、Windows2000 Server SP4、Sun JDK 1.4.1+Eclipse 2.1+Resin 2.1.8,在 Debug ...
      package com.liuc.test.think.chapter3; public class MathTest { public static void main(String[] args) { double a = 1.6; System.out.println(Math.round(a)); System.out.println(Math.ceil(a)); System.out.println(Math.floor(a)); double b = -1.6; System.out.println(Mat ...
最近改一个BUG,需要根据时间区间进行查询,但是反应查询时间特别长,   select * from A t, B mbf, C m where t.firmId = mbf.firmId and mbf.brokerId = m.brokerId and trunc(cleardate ) <= to_Date('20120312','yyyymmdd') and trunc(cleardate ) >= to_Date('20110101','yyyymmdd')    数据量      select count(*) from A ...

值传递

package com.liuc.test.think; public class PassObject { public static void main(String[] args) { Letter x=new Letter(); x.c='A'; System.out.println("x.c="+x.c); change(x); System.out.println("x.c="+x.c); } public static void change(Letter y){ y.c='Z'; ...

赋值语句

  package com.liuc.test; public class Assignment { public static void main(String[] args) { Tank tank1=new Tank(); Tank tank2=new Tank(); tank1.level=9; tank2.level=47; System.out.println("t1.level"+tank1.level+",t2.level"+tank2.level); tank1=tan ...
举个例子,比如页面上有  <input type="text" name="p_1" value="1"> <input type="text" name="p_2" value="2"> <input type="text" name="p_3" value="3"> 提交表单后,后台: Map map = WebUtils.getParametersSta ...

关于DECODE

  DECODE是Oracle公司独家提供的功能,它是一个功能很强的函数。它虽然不是SQL的标准,但对于性能非常有用。到目前,其他的数据库供应商还不能提供类似DECODE的功能,甚至有的数据库的供应商批评Oracle的SQL不标准。实际上,这种批评有些片面或不够水平。就象有些马车制造商抱怨亨利。福特的“马车”不标准一样。 1 DECODE 中的if-then-else逻辑   在逻辑编程中,经常用到If – Then –Else 进行逻辑判断。在DECODE的语法中,实际上就是这样的逻辑处理过程。它的语法如下:   DECODE(value, if1, then1, if2,the ...
Global site tag (gtag.js) - Google Analytics