- 博客(9)
- 收藏
- 关注
原创 tomcat源代码
HttpServlet.service(request, response); ApplicationFilterChain implements FilterChain.doFilter():servlet.service(request, response);//servlet=IndexServlet support.fireInstanceEvent(Instan...
2011-05-12 23:14:28
219
原创 eclipse的vmargs设置
eclipse官网的FAQ提供以下几种方式-vmargs-Xms512m-Xmx1024m-XX:+UseParallelGC-XX:PermSize=256M-XX:MaxPermSize=512M这其中其他意义明显,但是+UseParallelGC有何用处? ...
2011-04-03 16:55:28
335
原创 AspectJ Pointcuts的说明
<aop:config> <aop:aspect ref="audience"> <aop:pointcut id="performance" expression="execution(* *.perform(..))" /> <aop:before meth
2011-03-19 17:46:57
207
原创 Spring的xml配置一个小问题
<bean id="pureAudience" class="com.springinaction.springidol.PureAudience" /> <aop:config> <aop:aspect ref="pureAudience"> <aop:pointcut id="p
2011-03-19 17:31:27
118
原创 Taperstry5.0学习日志
1.In Tapestry, injection occurs through constructors, through parameters to service builder methods, or through direct injection into fields. Tapestry prefers constructor injection, as this emphasizes...
2011-03-05 16:24:52
215
字节流和字符流混用会导致的问题及解决办法
试过两种情况,不管先使用字符流或者后使用字符流,这两者之间的共存都会出或多或少的问题。解决办法是使用DataOutput和DataInput两接口中可以配对的方法-readUTF()和writeUTF()方法这是客户端的代码Client.java:import java.io.DataInputStream;import java.io.File;import java.io....
2010-09-17 00:58:05
489
原创 Callable和Future
看了好长时间才知道怎么回事(可能我比较笨吧),这两个接口可以说应该是一对吧,Callable的中的call()方法负责计算,而Future中的get()方法负责得到call()计算出来的结果!...
2010-08-07 16:02:44
83
paintComponents()和paintComponent()一字之差
最近在温习线程的时候,写了一个小球碰撞的程序,发现一个问题,小球的运动始终都有拖尾。摘录了小球运动的面板类如下:class BallPanel extends JPanel{ public void add(Ball b) { balls.add(b); } public void paintComponent(Gr...
2010-05-19 18:50:29
546
父页面调用iframe里的js函数
前些天项目碰到这个问题,在ie下可以直接调用iframe里的js函数如:document.getElementById('iframedemo').targetfunction();但是这段代码在firefox下报错,于是上google搜索,发现一个解决办法,在ie和firefox下均工作正常,代码如下:document.getElementById('iframedemo')...
2009-07-31 20:58:57
107
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人