加密算法RSA
线程池:
private ExecutorService operationExecutor = Executors.newSingleThreadExecutor();
if (!operationExecutor .isShutdown())
{
operationExecutor .submit(new DbTask(logBean));
}
class DbTask implements Runnable
{
。。。。。
}
operationExecutor .shutdownNow();
StackTraceElement[] stack = Thread.currentThread().getStackTrace();
String interfaceName = stack[2].getMethodName();
new Thread(new Runnable()
{
@Override
public void run()
{
。。。。
}
}).start();
private static ThreadLocal<HashMap<String, String>> headerContents = new ThreadLocal<HashMap<String, String>>()
{
};
Linux下ntp时间同步服务器
定时器使用quartz
GIS电力巡检—移动GIS
读取配置文件
private static final String WS_CONFIG_PATH = "/conf/Url.properties";
StringBuilder configUrl = new StringBuilder();
configUrl.append(new File(WebServiceProvider.class.getResource("/").getPath()).getParent());
configUrl.append(WS_CONFIG_PATH);
hibernate 事务隔离级别
configUrl.append(new File(WebServiceProvider.class.getResource("/").getPath()).getParent());
configUrl.append(WS_CONFIG_PATH);
<tx:method name="*" isolation="READ_COMMITTED" propagation="REQUIRED" rollback-for="Throwable"/>
http://xurichusheng.iteye.com/blog/1066086
CountDownLatch 它允许一个或多个线程一直等待
http://www.iteye.com/topic/1002652