`
ross.geller
  • 浏览: 12894 次
  • 性别: Icon_minigender_1
  • 来自: 西安
最近访客 更多访客>>
文章分类
社区版块
存档分类
最新评论
文章列表
HttpServlet.service(request, response);   ApplicationFilterChain implements FilterChain.doFilter(): servlet.service(request, response);//servlet=IndexServlet   support.fireInstanceEvent(InstanceEvent.AFTER_SERVICE_EVENT,                                       servlet, request, response);   ...
eclipse官网的FAQ提供以下几种方式 -vmargs -Xms512m -Xmx1024m -XX:+UseParallelGC -XX:PermSize=256M -XX:MaxPermSize=512M 这其中其他意义明显,但是+UseParallelGC有何用处?    
<aop:config> <aop:aspect ref="audience"> <aop:pointcut id="performance" expression="execution(* *.perform(..))" /> <aop:before method="takeSeats" pointcut-ref="performance" /& ...
  <bean id="pureAudience" class="com.springinaction.springidol.PureAudience" /> <aop:config> <aop:aspect ref="pureAudience"> <aop:pointcut id="performance" expression="execution(* *.perform(..))&quo ...
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 that dependencies should be stored in final variables. This is the best approach towards ensuring th ...
试过两种情况,不管先使用字符流或者后使用字符流,这两者之间的共存都会出或多或少的问题。 解决办法是使用DataOutput和DataInput两接口中可以配对的方法-readUTF()和writeUTF()方法 这是客户端的代码Client.java: import java.io.DataInputStream; import java.io.File; import java.io.FileOutputStream; import java.io.InputStream; import java.net.Socket; public class Client { ...
看了好长时间才知道怎么回事(可能我比较笨吧),这两个接口可以说应该是一对吧,Callable的中的call()方法负责计算,而Future中的get()方法负责得到call()计算出来的结果!
最近在温习线程的时候,写了一个小球碰撞的程序,发现一个问题,小球的运动始终都有拖尾。 摘录了小球运动的面板类如下: class BallPanel extends JPanel {     public void add(Ball b)     {         balls.add(b);     }         public void paintComponent(Graphics g)     {         super.paintComponents(g);         Graphics2D g2D=(Graphics2D)g;         f ...
前些天项目碰到这个问题,在ie下可以直接调用iframe里的js函数 如: document.getElementById('iframedemo').targetfunction(); 但是这段代码在firefox下报错,于是上google搜索,发现一个解决办法,在ie和firefox 下均工作正常,代码如下: document.getElementById('iframedemo').contentWindow.demofunction(); 其中iframedemo是iframe的id
Global site tag (gtag.js) - Google Analytics