- 浏览: 25565 次
- 性别:
- 来自: 深圳
最新评论
文章列表
[置顶] Nats安装与部署
- 博客分类:
- Nats安装步骤
一、准备工作
-1. OS 类型ubuntu-12.04-server-i386
0.openssh-server安装(可选)
sudo install openssh-server
1.gcc 安装
http://digdeeply.org/archives/06142220.html
package crypto.test;
public class CryptoToolsTest {
public static void main(String[] args) {
//hash password
String salt = CryptoTools.generateSalt();
String password= "123456" ;
String hashPassword = CryptoTools.hash(password+salt);
System.out.println("hashPassw ...
/**
* @return the request
*/
public HttpServletRequest getRequest() {
HttpServletRequest request =
((ServletRequestAttributes)RequestContextHolder.getRequestAttributes()).getRequest();
return request;
}
<profiles>
<profile>
<id>jdk17</id>
<activation>
<activeByDefault>true</activeByDefault>
<jdk>1.7</jdk>
</activation>
<properties>
<maven.compiler.source>1.7</maven.compiler.source>
<maven. ...
同步与并发demo:增加吞吐量
- 博客分类:
- Lock实现同步与并发
package test.lock;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
import java.util.Random;
import java.util.concurrent.ConcurrentHashMap;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;
import java.util.concurrent.locks.Lock;
...
1.更改Eclipse JDK编译环境(将目录jre改成jdk目录)[b](这一步很关键)[/b]: Window -> Preferences -> Java -> Installed JREs, 点击"Add"按钮,选择默认的"Standard VM", 点击"Next >", 点击"JRE home"右边的"Directory"选择文件夹D:/Development/Java/jdk1.6.0.30,回到"Installed JREs"界面,在 ...
Maven configuration
<dependency>
<groupId>org.apache.logging.log4j</groupId>
<artifactId>log4j-api</artifactId>
<version>2.0-rc1</version>
</dependency>
<dependency>
<groupId>org.apache.logging.log4j</groupId>
...
Copy by http://emuch.net/fanwen/539/82423.html
access arm 磁头臂,存取臂
access time 存取时间
adder 加法器
address 地址
alphanumeric 字母数字的
analog computer 模拟计算机
analyst 分析员
area 区域
array 数组,阵 ...