java
文章平均质量分 81
beneo
这个作者很懒,什么都没留下…
展开
-
关于classpath wildcard
在java 1.5的时候,我还得写bash脚本去loop获得所有的jar,然后写到classpath下面,现在换到1.6,发现有个classpath wildcard,原来classpath也有通配符看[url=http://download.oracle.com/javase/6/docs/technotes/tools/windows/classpath.html]这里[/url]...2011-04-22 15:37:53 · 201 阅读 · 0 评论 -
the webapp configuration of jetty + spring + db
自己留作一个备份,share给大家maven-webapp的pom.xml,关于jetty + spring + bonecp的配置不过前提是你要懂一点点maven[code="xml"] q-a-javaeye q-a-javaeye 1.0 4.0.0 spring...2011-01-15 22:39:30 · 94 阅读 · 0 评论 -
Runtime.getRuntime().exec(...)使用方法
上两周问答大赛的时候,看到了很多人问为什么自己调用的Runtime.getRuntime().exec(...)方法没有返回。其实没有返回的原因很多,但是前提你要写出一个正确的exec如果想要了解更多的信息,参阅代码里面给的链接下面是这个正确的例子[code="java"]public class RuntimeExec { /** * Runtime...原创 2011-01-15 22:49:38 · 959 阅读 · 0 评论 -
为神马 1.0 - 0.7 != 0.3 ???
直接上代码[code="java"] public static void main(String[] args) { System.out.println(1.0 - 0.1); System.out.println(1.0 - 0.2); System.out.println(1.0 - 0.3); Sy...2011-01-21 23:54:18 · 157 阅读 · 0 评论 -
Gregorian Calendar ------ 有趣的日历
项目有个需求,每天生成一个文件。开始觉得用一个[url=http://gceclub.sun.com.cn/Java_Docs/jdk6/html/zh_CN/api/java/util/TimerTask.html]TimeTask[/url]或者[url=http://gceclub.sun.com.cn/Java_Docs/jdk6/html/zh_CN/api/java/util/conc...2010-12-01 13:50:02 · 2150 阅读 · 0 评论 -
mark一句话
Working as an effective professional Java developer requires two major skills: thinking like a Java developer and having a broad understanding of Java APIs, tools, and techniques to solve a wide varie...原创 2011-04-01 15:51:22 · 114 阅读 · 0 评论 -
深入理解EventBus的设计思想
凌弃同学已经介绍了EventBus的使用方式如何使用——三步走:1、定义一个observer,并加入@Subscribe作为消息回调函数;2、将observer注册到EventBus;EventBus.register(this);3、消息投递: eventBus.post(logTo);本文将深入EventBus的源代码,和大家一起深入研究EventBus的让...2013-12-03 10:08:58 · 363 阅读 · 0 评论