
java
文章平均质量分 77
bluedest
这个作者很懒,什么都没留下…
展开
-
在java中取得某个方法的调用层次
比如你的有个类叫做UserAction,里面有个方法叫save()。有时候,你会想知道这个save()方法是被哪些类的哪些方法所调用,可以用下面的小段代码得到。public String save(){ [color=red] StackTraceElement stack[] = (new Throwable()).getStackTrace(); for(int i=0;...2009-11-18 17:23:13 · 453 阅读 · 0 评论 -
backbone学习笔记
太折腾了,这事一定得记下来。 在backbone中,假设有10组人(GroupView),每个组又有很多人(PersonView),这样需要循环展示GroupView,同时需要在GroupView中调用PersonView的render方法来渲染人员页面片段的生成。代码如下: that.$(".groupList").append(persionView.render().$...原创 2012-12-20 21:46:07 · 169 阅读 · 0 评论 -
fatjar的eclipse插件在线更新地址
fatjar的eclipse插件在线更新地址http://kurucz-grafika.de/fatjar/原创 2012-09-02 16:30:46 · 137 阅读 · 0 评论 -
[转]Grails如何使用外部配置文件
Grails的Config发布后是编译的,无法手动修改,所以可以通过外部配置文件的方式修改一些设置,如数据库的链接等。 在Config.groovy增加 grails.config.locations = [ "classpath:app-config.properties"] 然后在grails-app/conf/目录下创建app-config.proper...原创 2012-08-21 12:06:17 · 203 阅读 · 0 评论 -
用java抓网页读取国际时间,执行linux shell命令更改时间
//同步时间 public static void updateTime() throws Exception { HttpClient client=new HttpClient(); String str="http://123.125.114.102/special/time/"; GetMethod get=new GetMethod(str); cli...2012-06-14 22:59:12 · 158 阅读 · 0 评论 -
groovy中极关键的一个源代码类 DefaultGroovyMethods
/* * Copyright 2003-2011 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the Lic...原创 2011-12-14 12:25:25 · 1892 阅读 · 0 评论 -
grails和groovy的电子书-5 grails in action
收藏了一些grails和groovy的电子书,不敢独享,贡献出来给大家。原创 2010-09-09 14:11:05 · 100 阅读 · 0 评论 -
grails和groovy的电子书-3
收藏了一些grails和groovy的电子书,不敢独享,贡献出来给大家。原创 2010-09-09 13:47:23 · 104 阅读 · 0 评论 -
grails和groovy的电子书-2
收藏了一些grails和groovy的电子书,不敢独享,贡献出来给大家。原创 2010-09-09 13:21:49 · 95 阅读 · 0 评论 -
grails和groovy的电子书-1
收藏了一些grails和groovy的电子书,不敢独享,贡献出来给大家。原创 2010-09-09 13:11:28 · 96 阅读 · 0 评论 -
httpclient3.1中的两个关键方法
在HttpMethodBase类中,关键方法1: public int execute(HttpState state, HttpConnection conn) throws HttpException, IOException { LOG.trace("enter HttpMethodBase.execute(Http...原创 2010-09-09 12:54:28 · 166 阅读 · 0 评论 -
(转)Windows客户端的JProfiler远程监控Linux上的Tomcat
详细地址请看http://blog.youkuaiyun.com/wolma/archive/2007/07/31/1719568.aspx原创 2010-01-18 11:25:45 · 112 阅读 · 0 评论 -
jira3.13.4简单的破解
多的就不说了,我装的是jira3.13.4版本,看到网上有很多破解方法,但是都比较麻烦。我直接把com.atlassian.license.DefaultLicense类进行反编译,更改了里面的几个方法。有[list][code="java"]public boolean isExpired() { return false; // Date expiry = getExp...2009-07-08 10:17:01 · 201 阅读 · 0 评论 -
eclipse安装adt2.0插件报错的解决
比如报equires 'org.eclipse.cdt.feature.group 0.0.0' but it could not be found 总之是差这样差那样,终极原因,是你没有下载正确的eclipse版本,请看下图,一定要下载此版本,否则后患无穷。 ...原创 2012-09-23 15:03:38 · 217 阅读 · 0 评论