Environmental information:
JDK1.7;
Eclipse 4.4.1;
Installation of Mongdb + MONGVUE:MONGDB
Redis Download and install: Install Redis under Windows
maven3.0.5
To create a new MAVEN project:
Pom.xml
<ProjectXmlns:xsi= "Http://www.w3.org/2001/XMLSchema-instance"xmlns= "http://maven.apache.org/POM/4.0.0"xsi:schemalocation= "http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> <modelversion>4.0.0</modelversion> <groupId>Bs</groupId> <Artifactid>ClientService</Artifactid> <version>0.0.1-snapshot</version> <name>Bsframe</name> <Properties> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> <java.version>1.7</java.version> </Properties> <Dependencies> <Dependency> <groupId>Junit</groupId> <Artifactid>Junit</Artifactid> <version>4.8.2</version> <Scope>Test</Scope> </Dependency> <Dependency> <groupId>Com.google.code.gson</groupId> <Artifactid>Gson</Artifactid> <version>2.2.4</version> </Dependency> <Dependency> <groupId>Org.json</groupId> <Artifactid>Json</Artifactid> <version>20090211</version> </Dependency> <Dependency> <groupId>Redis.clients</groupId> <Artifactid>Jedis</Artifactid> <version>2.4.2</version> </Dependency> <Dependency> <groupId>Org.mongodb</groupId> <Artifactid>Mongo-java-driver</Artifactid> <version>2.11.0</version> </Dependency> <Dependency> <groupId>Org.springframework</groupId> <Artifactid>Spring-context</Artifactid> <version>3.1.1.RELEASE</version> </Dependency> <Dependency> <groupId>Org.springframework</groupId> <Artifactid>Spring-web</Artifactid> <version>3.1.2.RELEASE</version> </Dependency> <Dependency> <groupId>Org.springframework</groupId> <Artifactid>Spring-webmvc</Artifactid> <version>3.1.2.RELEASE</version> </Dependency> <Dependency> <groupId>Org.springframework</groupId> <Artifactid>Spring-orm</Artifactid> <version>3.1.2.RELEASE</version> </Dependency> <Dependency> <groupId>Org.springframework</groupId> <Artifactid>Spring-jdbc</Artifactid> <version>3.1.2.RELEASE</version> </Dependency> <Dependency> <groupId>Org.springframework</groupId> <Artifactid>Spring-test</Artifactid> <version>3.1.2.RELEASE</version> </Dependency> <Dependency> <groupId>Commons-httpclient</groupId> <Artifactid>Commons-httpclient</Artifactid> <version>3.1</version> </Dependency> <Dependency> <groupId>Org.apache.httpcomponents</groupId> <Artifactid>Httpcore</Artifactid> <version>4.3.2</version> </Dependency> </Dependencies> </Project>
springmvc+ mongdb + redis +jedis Environment setup