I think the official documentation gives you
the answer to this one (albeit in a fairly nonspecific way):This method is the
dynamic equivalent of the ...
分类:
其他好文 时间:
2014-05-14 03:31:06
阅读次数:
223
之前做即时通讯,扒了smack源码来参考。说下其中解包后进行通知的机制。Filter类:accept(Packet
packet)函数,传入packet在此函数中进行对比判断,返回true 则通过此filter认证。实现PacketFilter接口即可。public
interface Packet...
分类:
其他好文 时间:
2014-05-14 03:22:52
阅读次数:
364
(mybatis注意各个文件的映射问题)用到的t_user数据库脚本:-- 导出
mybatis 的数据库结构CREATE DATABASE IF NOT EXISTS `mybatis` /*!40100 DEFAULT CHARACTER
SET utf8 */;USE `mybatis`;--...
分类:
其他好文 时间:
2014-05-14 03:19:55
阅读次数:
396
解决方法是将 jre的目录在 window->Preferences 里修改java
installed里的jre目录改为jdk目录即可。原因是在jre目录下不存在tools.jar.
分类:
其他好文 时间:
2014-05-12 22:08:31
阅读次数:
895
Action接口:public interface Action {public String
execute(String str);}Action的两个实现public class UpperAction implements Action
{private String message;pub...
分类:
编程语言 时间:
2014-05-12 21:29:36
阅读次数:
389
iOS 人机交互指导方针(iOS Human Interface Guidelines)...
分类:
移动开发 时间:
2014-05-11 22:17:38
阅读次数:
479
使用emacs的用户都知道,一般要打开远程机器上的文件要使用TrampMode模式,调用方式如下:
C-x C-f /remotehost:filename RET (or /method:user@remotehost:filename)
但,这样打开有点麻烦,你必要输入用户名和机器ip等
emacs提供了一种client/server的模式,当我们在本地打开一个emacs,可以将它作...
分类:
其他好文 时间:
2014-05-11 21:55:05
阅读次数:
366
public class ThreadTest implements Callable {
public String call() throws Exception {
// TODO Auto-generated method stub
wait(10000);
return "hello";
}
}调用代码:
public static void main(Stri...
分类:
编程语言 时间:
2014-05-11 21:27:24
阅读次数:
533
package com.ctl.util;
import java.io.IOException;
import java.lang.reflect.Field;
import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.Method;
import java.sql.Connection;
impo...
分类:
数据库 时间:
2014-05-11 21:04:49
阅读次数:
501
Linuxcomeswithmanytoolstoenableadministratorstoevaluatetheperformanceofasystem.Oneoftheseveryusefultoolsisvmstat.VmstatisavailableonmostunixdistributionsandisincludedbydefaultonmanymodernLinuxdistributions.AswithmostLinuxcommands,builtinhelpisavailableviath..
分类:
系统相关 时间:
2014-05-11 19:39:38
阅读次数:
680